I get the following error message when I try to create a database.
Warning: mysql_connect() [function.mysql-connect]: Access denied for user ‘a8995753’@‘localhost’ (using password: YES) in /home/a8995753/public_html/database.php on line 7
Step 1. Login to the Members Area.
Step 2. Click on Go to Cpanel.
Step 3. Click MySQL in Software / Services section.
Step 4. Where it says MyhSQL Host copy whats underneath it example: mysql15.000webhost.com.
Step 5. Replace localhost with that.
Step 1. Login to the Members Area.
Step 2. Click on Go to Cpanel.
Step 3. Click MySQL in Software / Services section.
Step 4. Where it says MyhSQL Host copy whats underneath it example: mysql15.000webhost.com.
Step 5. Replace localhost with that.
Warning: mysql_connect() [function.mysql-connect]: Host ‘10.1.1.22’ is not allowed to connect to this MySQL server in /home/a8995753/public_html/database.php on line 8
The name of the database is that it appears in your control panel. G-brad wrote an example.
Another obsevación. In your free accounts you can only create two databases. The databases are created better than MySQL option from within the control panel.
After testing your script, I found that creating database by executing php script is not
allowed in 000webhost.com server. Creating DB is possible only through MySQL icon in
your CPanel. If you want to test creating DB by executing php script, you can do it in
your localhost server as ‘root’ user.
Warning: mysql_connect() [function.mysql-connect]: Host ‘10.1.1.25’ is not allowed to connect to this MySQL server in /home/a2475347/public_html/tmp/test.php on line 2
Could not connect: Host ‘10.1.1.25’ is not allowed to connect to this MySQL server