Installed Apache, PHP and MySQL in Windows 10, all working fine and running.
But, when testing PHP to connect to MySQL (using mysqli and PDO), both aren't working.
Checked phpinfo, there have mysqlnd installed.
Please help, thanks!
PHP not able to connect to MySQL
Moderator: General Moderators
-
- Forum Newbie
- Posts: 2
- Joined: Sun Jun 18, 2017 10:12 pm
- Christopher
- Site Administrator
- Posts: 13592
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: PHP not able to connect to MySQL
Are the user and password correct? Do they have permissions to access the database?
(#10850)
-
- Forum Newbie
- Posts: 2
- Joined: Sun Jun 18, 2017 10:12 pm
Re: PHP not able to connect to MySQL
Reformat windows, now phpinfo shown mysql, mysql and mysqlnd installed, everything is working fine now.
- Christopher
- Site Administrator
- Posts: 13592
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: PHP not able to connect to MySQL
Ahhhhh ... of course!sunnymaggie wrote:Reformat windows
(#10850)