MySQL server

Status
Not open for further replies.

40tud

New Member
Messages
14
Reaction score
0
Points
0
Why are MySQL services down in all servers?
MySQL, PHPmyAdmin, etc. seems to be functioning in the cPanel, but when I'm about to test my php files it says that MySQL is not responding (because it's freakin' down!).
Could you guys do something about this?
 

Scott

New Member
Messages
2,093
Reaction score
0
Points
0
MySQL is up, It's saying that because we have blocked all outside connections to the MySQL servers.
 

40tud

New Member
Messages
14
Reaction score
0
Points
0
Okay. I tested again just now. It's up now and functioning. Thanks.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Since this is resolved I am going to close it out. Please re-open or create a new thread if further assistance is needed.

-Corey
 

40tud

New Member
Messages
14
Reaction score
0
Points
0
Oh, so it failed again. It already functioned by the time I posted my last post. I think MySQL server in absolut is down again. Why does this keep happening? It rarely functions properly. When I'm about to test my project, it says:

Warning: mktime() expects parameter 1 to be long, string given in /home/forti09/public_html/register.php on line 11

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'mysql.x10hosting.com' (1) in /home/forti09/public_html/connect.php on line 10
 
Last edited:

40tud

New Member
Messages
14
Reaction score
0
Points
0
i will change mysql.x10hosting.com to localhost?

changed it and this appeared:

Warning: mktime() expects parameter 1 to be long, string given in /home/forti09/public_html/register.php on line 11

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'forti09_forti09'@'localhost' (using password: YES) in /home/forti09/public_html/connect.php on line 10
It seems this site's database isn't responding.

i still can't use my 'register' function in my web
 
Last edited:

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
Check if it's working now please.
I've re-assigned the MySQL user to the database.
 

40tud

New Member
Messages
14
Reaction score
0
Points
0
Thank you very much for your help. :)
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Since this seems to be resolved I am going to close the thread. If you need further assistance feel free to re-open this thread or create a new one.

-Corey
 

40tud

New Member
Messages
14
Reaction score
0
Points
0
I accidentally deleted the file. Can someone fix my problem again? The same problem happens when I open install.php and I think there's something wrong in my connect.php agian, just like my previous problem. I do not know what to do. Help please.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
What file?

Please post an error message.
 

40tud

New Member
Messages
14
Reaction score
0
Points
0
Honestly, I'm a newbie in this one so I need some assistance.

I have a file, which is named install.php, to install some mysql codes to my mysql database, which happens when I open install.php, and goes like this:

<?php
require_once("connect.php");
$query = mysql_query("
CREATE TABLE `members` (
`id` MEDIUMINT( 8 ) NOT NULL AUTO_INCREMENT ,
`username` VARCHAR( 50 ) NOT NULL ,
`firstname` VARCHAR( 50 ) NOT NULL ,
`lastname` VARCHAR( 50 ) NOT NULL ,
`password` VARCHAR( 50 ) NOT NULL ,
`date` VARCHAR( 50 ) NOT NULL ,
`ip` VARCHAR( 50 ) NOT NULL ,
PRIMARY KEY ( `id` ) ,
UNIQUE (
`username`
)
)");
echo "Installed! Please delete this file.";
?>

It shows that it requires connect.php and it goes like this:

<?php
// MySQL connect information.
$c_username = "username";
$c_password = "password";
$c_host = "localhost";
$c_database = "database";
// Connect.
$connection = mysql_connect($c_host, $c_username, $c_password)
or die ("It seems this site's database isn't responding.");
mysql_select_db($c_database)
or die ("It seems this site's database isn't responding.");
?>

I'm really not sure what to type in those bold texts. When I enter wrong info and I'm about to open install.php, the error goes like this:

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '10.10.96.130' (4) in /home/forti09/public_html/connect.php on line 10
It seems this site's database isn't responding.

Tried to place 10.10.96.130 and mysql.x10hosting.com for the $c_database and still I got errors, like this:

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '10.10.96.130' (4) in /home/forti09/public_html/connect.php on line 10
It seems this site's database isn't responding.

Can you guys look in my database and tell me what to do?
I really need some help here to continue my project.

Thanks.
 
Last edited:

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38

40tud

New Member
Messages
14
Reaction score
0
Points
0
Edit:
I can already register and login but there's still an error appearing. I want to remove it. The error goes like this:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/forti09/public_html/test.php:11) in /home/forti09/public_html/test.php on line 177

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/forti09/public_html/test.php:11) in /home/forti09/public_html/test.php on line 177
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Check the top of your file and make sure there is nothing being sent before session_start
 
Status
Not open for further replies.
Top