Jump to content

Cannot connect to web server mysql database


freakymitra

Recommended Posts

Hi,

 

When i am trying to run one script on my web server, i get following error

 

Cannot connect to the database using the info you provided

Access denied for user 'My_Username'@'localhost' (using password: NO)

 

I filled all info like Host(localhost) Database name(created in cpanel) Username(created in cpanel) Password(i kept blank dont know where to find this)

 

 

You help will highly appreciate

 

Thanks,

Ravindra

Link to comment
Share on other sites

You need to create a database user that has access to your database

This is done under the database section using the linke labelled Mysql Databases

You will see a section to add user enter a user name and a password

Then select create user

after that there is a section directly under that "Add user to Database"

Select your new user then select your database you want to use and click add

Give that user all permissions and click modify

 

This is the user name and password you will use to connect to the database

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.