Access denied for user 'lukemin'@'10.33.248.75' (using password: NO)

Status
Not open for further replies.

lukemin86

New Member
Messages
24
Reaction score
0
Points
0
Can not connect to mysql
Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'lukemin'@'10.33.248.75' (using password: NO) in /home/lukemin/public_html/blog/install/db.php on line 21

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/lukemin/public_html/blog/install/db.php on line 21
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
To use MySQL in your website you will first need to create a MySQL database and a MySQL User. You can do this from cPanel. (Don't forget to link the User to your Database).

Then you need to configure your script to connect to MySQL, the following settings should be used:
• Host/Server Name = 'localhost'
• Port = '3306'
• Username = [Your*cPanel username followed by an underscore and the MySQL username you configured in cPanel]
• Password = [The password that you used when creating the MySQL user]
• Database = [ Your cPanel username followed by an underscore and the name of the database that you created in cPanel]
Free hosting accounts do not have remote MySQL access.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Make sure you create a database user, do not use your cPanel user name as the user.
 
Status
Not open for further replies.
Top