How do i connect to MySQL?

Status
Not open for further replies.

as4s1n

New Member
Messages
174
Reaction score
4
Points
0
I'm having a little trouble connecting to my MySQL database, i'm not sure what the server name is if i connect from the public_html folder. And am i supposed to use my login from this site as my username or one i create in my database?
 

lemon-tree

x10 Minion
Community Support
Messages
1,420
Reaction score
46
Points
48
Servername: localhost
Username and Password are created in the MySQL section of cPanel
 
Messages
740
Reaction score
1
Points
18
It should be localhost.

You should make a database in your cpanel.
You should then make a database user with a password (this can be found just below where you made the database).
You then need to link the database user to the database - this can be done by the part just underneath. You'll also need to give the datebase user permission to access the datebase. This is pretty much self explanatory on the page.
Then in your file, you just need to fill in the details it asks for with regards to the stuff you just made.
 

jerome09

New Member
Messages
1
Reaction score
0
Points
0
Oh lol, i was having the exact same trouble. So i decided to come here and guess what the first post i saw was ! :bowrofl:

All sorted now. Thanks for your help lol :)
 
Status
Not open for further replies.
Top