I recently installed RadiPanel to my site in order to use it for a Radio DJ Panel.
I keep getting a persistent error that the MySQL information is incorrect. I have made a database over and over to try to accommodate to this error. Can anyone help?

I recently installed RadiPanel to my site in order to use it for a Radio DJ Panel.
I keep getting a persistent error that the MySQL information is incorrect. I have made a database over and over to try to accommodate to this error. Can anyone help?
You've set details correctly, right? The MySQL username/password and database etc..
What is the exact error then?
How good with PHP are you? Maybe make a new PHP file like this to test your connection and get a proper error message.
PHP Code:<?php
// Generally just change the mysql_user and mysql_password
if (!$link) {
die('Not connected : ' . mysql_error());
}
// Change foo to whatever the database is. Radipanel?
$db_selected = mysql_select_db('foo', $link);
if (!$db_selected) {
die ('Can\'t use foo : ' . mysql_error());
}
?>
Last edited by Blinger; 17-02-2014 at 07:56 PM.
I'm embarassed to say I don't even know where to enter that.. haha. Command line?How good with PHP are you? Maybe make a new PHP file like this to test your connection and get a proper error message.
PHP Code:<?php
// Generally just change the mysql_user and mysql_password
if (!$link) {
die('Not connected : ' . mysql_error());
}
// Change foo to whatever the database is. Radipanel?
$db_selected = mysql_select_db('foo', $link);
if (!$db_selected) {
die ('Can\'t use foo : ' . mysql_error());
}
?>
Okay.
use this
PHP Code:<?php
// Change the user and password
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Not connected : ' . mysql_error());
}
// Change the database to your one
$db_selected = mysql_select_db('radipanel', $link);
if (!$db_selected) {
die ('Can\'t use foo : ' . mysql_error());
}
?>
Create a new PHP file using whatever editor you use (maybe notepad will be simple enough for this). Change the words mysql_user and mysql_password to your MySQL details.
Log in to CPanel of FTP into your host and upload the file you just edited. Go to that page (yourhost.com/connect.php) and see what happens
Nevermind. I put it in a php file. Nothing has helped. Do you have a Skype?
Yes i guess so... @TrentW;
Want to hide these adverts? Register an account for free!