Can't Connect to MySQL Database

Status
Not open for further replies.

adzen

New Member
Messages
8
Reaction score
0
Points
0
Here is my code:
$DBConnect = @mysqli_connect("vinciara.x10hosting.com", "vincent", "pass");
Heres the error that I get:
Error code 1045: Access denied for user 'vincent'@'74.86.133.216' (using password: YES)

I saw a post that Corey replied to and said that he has to unblock my IP, so I can access it or something.

I am using x10hosting for the site, so I guess the only problem is my IP being blocked, right? Can someone PLEASE unblock my IP? It's really important... This is a project for my PHP class, and it's due in a few days! I haven't been able to code that much, because I haven't been able to connect :(.

Can you please let me know once you have done it, so I can test it? Thanks so much! :D!!!!

Here is my IP!
76.175.183.172

Thank you!!!!!!!! :O
 
Last edited:

jkocbek

New Member
Messages
5
Reaction score
0
Points
0
Hello!

I have simmilar problem. I'd like to access to the database with MySQL front. If it's possible i would like to do it this way, because it's less complicated than using phpMyAdmin.

I add access host but the connection is still refused. What to do?
my ip is 212.18.60.131
 
Last edited:

adzen

New Member
Messages
8
Reaction score
0
Points
0
The only thing we can do is wait for them to unblock our IP's :(. I am using PHP to access the MySQL DB because it's for a PHP project.

Get in line :D I've been waiting since yesterday morning :(
 

jdpalmer

New Member
Messages
12
Reaction score
0
Points
0
You guys know you have to create the DB first using the cpanel, right? I tried to create one using pure PHP script, but was unable to connect.

Once you have a database created using the cpanel, you can create tables and insert data with PHP:

$dbhost = "localhost";
$dbuser = "[cpanel name]";
$dbpass = "[cpanel_pass]";
$dbname = "[cpanel name]_[db name]";

$conn = mysql_connect($dbhost, $dbuser, $dbpass)
or die ("Error connecting to mysql");

mysql_select_db($dbname, $conn);

mysql_query("CREATE TABLE table (fields);");
mysql_query("INSERT INTO table (fields) VALUES (values);");
 

zzurrien

New Member
Messages
45
Reaction score
0
Points
0
Server maybe restarting xD Well, i think it will be online soon. I hope, it is online for me O_____o
 

Svennie

New Member
Messages
2
Reaction score
0
Points
0
You have to fill in this:

$DBConnect = @mysqli_connect("username_cpanelname", "vincent_cpanelname", "pass", "localhost');
I hope that that works :D
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
I've added the two IPs that were requested in this thread.

-Corey
 
Status
Not open for further replies.
Top