help me pls.

Status
Not open for further replies.

supcaspicasso

New Member
Messages
4
Reaction score
0
Points
0
Dear X10Hosting,

im kind of a web newb, but im trying to connect my Mysql database to a PHP site (holoCMS)
i have all the required files in my root and created a SQL named caspicas_holodb, and imported *.sql,
with PHPmyAdmin. I got a tutorial were it says to fil out the install.php form (http://caspicassohotel.x10.bz/install.php), i tried and i tried, but it keeps saying "Unable to connect to MySQL server. Please double-check the hostname, username, and password you have provided."

this is the form, can u tell me what i should put in?,
or where i can find these inputs :

Database Name
User Name (Your MySQL username usually 'root').
Password (The password linked to the MySQL Username)
Database Host
Site Path


thanks alot!
 
Last edited:

priyaa161

New Member
Messages
553
Reaction score
24
Points
0
Database Name: cpanel username_database name given
User Name (Your MySQL username usually 'root').cpanelusername_root
Password (The password linked to the MySQL Username)unaltered
Database Host: localhost
Site Path
....... Can get using php info, not sure whether enabled here or not.
 
Last edited:

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
Hello,

When you create the database in cPanel you have to create a database user and attach it to the database. Did you do that?
 

supcaspicasso

New Member
Messages
4
Reaction score
0
Points
0
Database Name: cpanel username_database name given
User Name (Your MySQL username usually 'root').cpanelusername_root
Password (The password linked to the MySQL Username)unaltered
Database Host: localhost
Site Path....... Can get using php info, not sure whether enabled here or not.

untitled..JPG

still not connected
 

priyaa161

New Member
Messages
553
Reaction score
24
Points
0
oh!

Hello,

When you create the database in cPanel you have to create a database user and attach it to the database. Did you do that?

Do it now by logging in to your control panel and then mysql database. And then try

:More:

Here the username is not "root". It is on our home server. It seems that you have not linked any user with that database.

so username will be: controlpanel username_database username
 
Last edited:

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
Hello,

The user "root" is not your user.

What you need to do, is log into cPanel. Scroll down the page to "MySQL Databases" and then once there, you need to click on it and create a user. You need to give it "All privileges" and then you need to assign the user to the database.

It is pretty self explanatory once you're in the "MySQL Databases" section.

If you need any more help, please let me know.
 

supcaspicasso

New Member
Messages
4
Reaction score
0
Points
0
THX All, i made a account connected to the mysql and i followd what i should put in, thx u both,

this post is ready to be closed!
 

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
You're very welcome my friend!

Thanks for using x10hosting and have a nice day!
 
Status
Not open for further replies.
Top