Laravel “php artisan migrate” gives errors
I'm using windows 10 with XAMPP.
When I run php artisan migrate
I get this error:
I have looked this problem up and most say to change the php.ini file, but that has not really helped.
For example
Artisan migrate could not find driver
says to "simply uncomment the extension:
;extension=php_pdo_mysql.dll"
I can't do that though since it simply does not exist in my php.ini file and if I just try to add it, nothing happens.
Another
php artisan migrate command error : could not find driver
claims that uncommenting the ";extension=pdo_mysql" to "extension=pdo_mysql" worked, but that was always uncommented for me.
Also in my database.php file i changed
to
(https://www.reddit.com/r/laravel/comments/6i0sak/i_get_errors_when_i_try_to_run_a_migration/)
but that didn't do anything either (although I didnt mess with the unix_socket thing since I dont think that applies to me).
Any ideas? This is really annoying lol.
php mysql database laravel xampp
add a comment |
I'm using windows 10 with XAMPP.
When I run php artisan migrate
I get this error:
I have looked this problem up and most say to change the php.ini file, but that has not really helped.
For example
Artisan migrate could not find driver
says to "simply uncomment the extension:
;extension=php_pdo_mysql.dll"
I can't do that though since it simply does not exist in my php.ini file and if I just try to add it, nothing happens.
Another
php artisan migrate command error : could not find driver
claims that uncommenting the ";extension=pdo_mysql" to "extension=pdo_mysql" worked, but that was always uncommented for me.
Also in my database.php file i changed
to
(https://www.reddit.com/r/laravel/comments/6i0sak/i_get_errors_when_i_try_to_run_a_migration/)
but that didn't do anything either (although I didnt mess with the unix_socket thing since I dont think that applies to me).
Any ideas? This is really annoying lol.
php mysql database laravel xampp
Are you sure you are looking at the rightphp.ini
file? What folder are you looking in
– RiggsFolly
Nov 22 '18 at 0:00
2
Try>php --ini
and look at theLoaded Configuration File
line in the output to see where PHP is getting its ini file from
– RiggsFolly
Nov 22 '18 at 0:02
Haha. Turns out that I have 2 versions of php. One in my c drive and one inside XAMMP. Uncommented the pdo thing in the php.ini of the php in my c drive. Works now. Thanks!
– Akash
Nov 22 '18 at 0:15
No, thats wrong. Take the PHP on C out of your PATH and replace it with the XAMPP folder
– RiggsFolly
Nov 22 '18 at 0:20
add a comment |
I'm using windows 10 with XAMPP.
When I run php artisan migrate
I get this error:
I have looked this problem up and most say to change the php.ini file, but that has not really helped.
For example
Artisan migrate could not find driver
says to "simply uncomment the extension:
;extension=php_pdo_mysql.dll"
I can't do that though since it simply does not exist in my php.ini file and if I just try to add it, nothing happens.
Another
php artisan migrate command error : could not find driver
claims that uncommenting the ";extension=pdo_mysql" to "extension=pdo_mysql" worked, but that was always uncommented for me.
Also in my database.php file i changed
to
(https://www.reddit.com/r/laravel/comments/6i0sak/i_get_errors_when_i_try_to_run_a_migration/)
but that didn't do anything either (although I didnt mess with the unix_socket thing since I dont think that applies to me).
Any ideas? This is really annoying lol.
php mysql database laravel xampp
I'm using windows 10 with XAMPP.
When I run php artisan migrate
I get this error:
I have looked this problem up and most say to change the php.ini file, but that has not really helped.
For example
Artisan migrate could not find driver
says to "simply uncomment the extension:
;extension=php_pdo_mysql.dll"
I can't do that though since it simply does not exist in my php.ini file and if I just try to add it, nothing happens.
Another
php artisan migrate command error : could not find driver
claims that uncommenting the ";extension=pdo_mysql" to "extension=pdo_mysql" worked, but that was always uncommented for me.
Also in my database.php file i changed
to
(https://www.reddit.com/r/laravel/comments/6i0sak/i_get_errors_when_i_try_to_run_a_migration/)
but that didn't do anything either (although I didnt mess with the unix_socket thing since I dont think that applies to me).
Any ideas? This is really annoying lol.
php mysql database laravel xampp
php mysql database laravel xampp
asked Nov 21 '18 at 23:55
AkashAkash
245
245
Are you sure you are looking at the rightphp.ini
file? What folder are you looking in
– RiggsFolly
Nov 22 '18 at 0:00
2
Try>php --ini
and look at theLoaded Configuration File
line in the output to see where PHP is getting its ini file from
– RiggsFolly
Nov 22 '18 at 0:02
Haha. Turns out that I have 2 versions of php. One in my c drive and one inside XAMMP. Uncommented the pdo thing in the php.ini of the php in my c drive. Works now. Thanks!
– Akash
Nov 22 '18 at 0:15
No, thats wrong. Take the PHP on C out of your PATH and replace it with the XAMPP folder
– RiggsFolly
Nov 22 '18 at 0:20
add a comment |
Are you sure you are looking at the rightphp.ini
file? What folder are you looking in
– RiggsFolly
Nov 22 '18 at 0:00
2
Try>php --ini
and look at theLoaded Configuration File
line in the output to see where PHP is getting its ini file from
– RiggsFolly
Nov 22 '18 at 0:02
Haha. Turns out that I have 2 versions of php. One in my c drive and one inside XAMMP. Uncommented the pdo thing in the php.ini of the php in my c drive. Works now. Thanks!
– Akash
Nov 22 '18 at 0:15
No, thats wrong. Take the PHP on C out of your PATH and replace it with the XAMPP folder
– RiggsFolly
Nov 22 '18 at 0:20
Are you sure you are looking at the right
php.ini
file? What folder are you looking in– RiggsFolly
Nov 22 '18 at 0:00
Are you sure you are looking at the right
php.ini
file? What folder are you looking in– RiggsFolly
Nov 22 '18 at 0:00
2
2
Try
>php --ini
and look at the Loaded Configuration File
line in the output to see where PHP is getting its ini file from– RiggsFolly
Nov 22 '18 at 0:02
Try
>php --ini
and look at the Loaded Configuration File
line in the output to see where PHP is getting its ini file from– RiggsFolly
Nov 22 '18 at 0:02
Haha. Turns out that I have 2 versions of php. One in my c drive and one inside XAMMP. Uncommented the pdo thing in the php.ini of the php in my c drive. Works now. Thanks!
– Akash
Nov 22 '18 at 0:15
Haha. Turns out that I have 2 versions of php. One in my c drive and one inside XAMMP. Uncommented the pdo thing in the php.ini of the php in my c drive. Works now. Thanks!
– Akash
Nov 22 '18 at 0:15
No, thats wrong. Take the PHP on C out of your PATH and replace it with the XAMPP folder
– RiggsFolly
Nov 22 '18 at 0:20
No, thats wrong. Take the PHP on C out of your PATH and replace it with the XAMPP folder
– RiggsFolly
Nov 22 '18 at 0:20
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53422089%2flaravel-php-artisan-migrate-gives-errors%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53422089%2flaravel-php-artisan-migrate-gives-errors%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you sure you are looking at the right
php.ini
file? What folder are you looking in– RiggsFolly
Nov 22 '18 at 0:00
2
Try
>php --ini
and look at theLoaded Configuration File
line in the output to see where PHP is getting its ini file from– RiggsFolly
Nov 22 '18 at 0:02
Haha. Turns out that I have 2 versions of php. One in my c drive and one inside XAMMP. Uncommented the pdo thing in the php.ini of the php in my c drive. Works now. Thanks!
– Akash
Nov 22 '18 at 0:15
No, thats wrong. Take the PHP on C out of your PATH and replace it with the XAMPP folder
– RiggsFolly
Nov 22 '18 at 0:20