With the following code I can connect to mysql: mysql_connect(\"localhost\",\"username\",\"\");
mysql_connect(\"localhost\",\"username\",\"\");
But if I change localhost to 127.0.0.
localhost
127.0.0.
You will be able to access it when you add the privileges for 'root'@'127.0.0.1' in the "USER_PRIVILEGES" table in the "information_schema" database
'root'@'127.0.0.1'
"USER_PRIVILEGES"
"information_schema"