jeppers Posted November 5, 2007 Share Posted November 5, 2007 i just can't get it to work can u help. when i try to connect to my database i get this message Lost connection to MySQL server during query is there anything that you can think of i am so peed off Link to comment https://forums.phpfreaks.com/topic/76123-solved-mysql-help/ Share on other sites More sharing options...
teng84 Posted November 5, 2007 Share Posted November 5, 2007 show your code Link to comment https://forums.phpfreaks.com/topic/76123-solved-mysql-help/#findComment-385274 Share on other sites More sharing options...
jeppers Posted November 5, 2007 Author Share Posted November 5, 2007 <?php # mysql_connect // this file contains the database access infomation // this file also esablishes a connection to mysql and selects the database // this file alse defines the escape data //set the database access infomation as constants DEFINE ('DB_USER', 'xxx'); DEFINE ('DB_PASSWORD', 'xxx'); DEFINE ('DB_HOST', 'xxx'); DEFINE ('DB_NAME', 'xxx'); // make the connection $dbc = @mysql_connect (xxx, xxx, xxx) OR die ('could not connect to mysql: ' .mysql_error()); // just seems not to get back this point //select the db @mysql_select_db(DB_NAME) OR die ('Could not select the database: ' . mysql_error()); Link to comment https://forums.phpfreaks.com/topic/76123-solved-mysql-help/#findComment-385275 Share on other sites More sharing options...
teng84 Posted November 6, 2007 Share Posted November 6, 2007 remove the @ and see what will be the error message? Link to comment https://forums.phpfreaks.com/topic/76123-solved-mysql-help/#findComment-385286 Share on other sites More sharing options...
jeppers Posted November 6, 2007 Author Share Posted November 6, 2007 well now i have removed the @ this is the message Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server during query in /misc/13/000/126/295/2/user/web/jeppers90.com/includes/mysql_connect.php on line 14 could not connect to mysql: Lost connection to MySQL server during query could it be the server. or i just don't get it can you help Link to comment https://forums.phpfreaks.com/topic/76123-solved-mysql-help/#findComment-385953 Share on other sites More sharing options...
trq Posted November 6, 2007 Share Posted November 6, 2007 Sounds like a server issue to me. Link to comment https://forums.phpfreaks.com/topic/76123-solved-mysql-help/#findComment-385958 Share on other sites More sharing options...
jeppers Posted November 6, 2007 Author Share Posted November 6, 2007 sorted it but think i might have another problem so i will keep you informed Link to comment https://forums.phpfreaks.com/topic/76123-solved-mysql-help/#findComment-385966 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.