PHP Warning: Can't connect to MySQL server on '63.161.3.227' (10060) in c:\www\schoolscandals\ubbthreads\mysql.inc.php on line 38 PHP Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in c:\www\schoolscandals\ubbthreads\mysql.inc.php on line 45 PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in c:\www\schoolscandals\ubbthreads\mysql.inc.php on line 97 PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\www\schoolscandals\ubbthreads\mysql.inc.php on line 121 PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in c:\www\schoolscandals\ubbthreads\mysql.inc.php on line 97 PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\www\schoolscandals\ubbthreads\mysql.inc.php on line 121 PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in c:\www\schoolscandals\ubbthreads\mysql.inc.php on line 97 <br /><br /><br />if you want to see go to http://63.161.3.227<br /><br />
#228516 - 11/28/0201:06 PMRe: Okay, now i broke it. Is it PHP or MySql?
[Re: TestPappy]
dimopoulos
Kahuna
Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
My guess is that it is a connection problem with your MySQL database. I think I had the same problem because I mispelled the password for the database in the config.inc.php.<br /><br />Is your database in the same box as the forum or you are connecting remotely? Check that the following are set properly. Play a bit with the dbserver using localhost or 127.0.0.1 or 63.161.3.227 in your case<br /><br />$config['dbtype'] = "mysql";<br />$config['dbserver'] = "localhost";<br />$config['dbuser'] = "admin"; (or your admin user)<br />$config['dbpass'] = "password";<br />$config['dbname'] = "your database name";<br /><br />I can't think of anything else right now, but the page shown suggests that there is not a valid connection with the database.<br /><br />Warm regards<br /><br />Nikos<br />
this all started when i tried to change the password from being blank ("") but tried the password i wanted it changed to and the old (blank) one but neither one will let me in... what can i do to save the info?
Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
This might be helpful: How to Reset a Forgotten Root Password.<br /><br />If you're not sure whether it's a MySQL or PHP problem, I would stick with using MySQL commands from the command line until you're sure that's working.
_________________________
UBB.threads beta tester / threadsdev.com moderator Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.
#228521 - 11/28/0201:57 PMRe: Okay, now i broke it. Is it PHP or MySql?
[Re: TestPappy]
dimopoulos
Kahuna
Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
I still haven't figured out myself how to create a shell and use MySQL from the command line on my 2K box. If you know please follow Dave's advice.<br /><br />What I can say from experience is the following:<br /><br />Check in the system tray if the WinMySQL is running (you will see a traffic light).<br /><br />If it's not running then go to C:\Program Files\mysql\bin\ or your equivelant path for your MySQL installation and run the winmysqladmin.exe.<br /><br />Right mouse click on it and select Show Me<br /><br />See the traffic light. If it is red then right mouse click on the top right area and select Start the service. Check if your forum works or not.<br /><br />If your forum still doesn't work:<br />If the traffic light is green then right mouse click on the top right area and click Stop the service and shutdown the tool (you have to choose the right mouse menu option on the top right area)<br /><br />Locate the file my.ini under your Windows folder and rename it to my.in_<br /><br />Run again the WinMySQLAdmin and choose a user and a password. A new my.ini will be created under windows and the user will be added in the users table.<br /><br />Failing all that delete the newly created my.ini and rename your old one my.in_ to my.ini<br /><br />I ran out of suggestions now.... <img src="/forum/images/graemlins/frown.gif" alt="" /><br /><br />Warm regards<br /><br />Nikos
uninstalled mysql reinstalled it re-set it up and now it's working again... But now i'm afraid to change it from login: root password ""<br /><br />Oh well<br /><br />Thanks everyone for the tips.
Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
You could add another user with full privileges (same as root), and experiment with changing the password for that one. If you mess it up, then you can still use root. After you've got the second user set up the way you want, and know that you can access MySQL with it, then you could try changing root's password again.<br /><br />I don't have experience using MySQL on Windows, though, so I can't guarantee this will work. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
UBB.threads beta tester / threadsdev.com moderator Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.
#228526 - 11/29/0210:12 AMRe: Okay, now i broke it. Is it PHP or MySql?
[Re: TestPappy]
AllenAyres
I type Like navaho
Registered: 03/10/00
Posts: 25448
Loc: Texas
ack, I'm not following the conversation <img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />What are you trying to do? If you are using the mysqladmin app for your databases, there's a tab to select 'my.ini setup' - you can change your password in there for your MySQL databases. If you change the password from 'root' to something else (probably recommended that you do anyways), any php/mysql script you setup will need the password changed to the new one. You can also edit the my.ini file directly with a text editor, it's in your /WinNT folder <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Ex: you change your password in the my.ini to <br />password<br /><br />you'll need to edit your config settings in your admin panel to reflect the new password. <img src="/forum/images/graemlins/smile.gif" alt="" />
Sorry for being so confusing. I suppose what I'm trying to do is change the username from root and the password from "" ...I can't figure out how to do that in WinMySQLadmin 1.4 ...I see the pick-up and Edit my.ini values but when I click it nothing happens. am I supposed to type something in the box to the right of that? Right now all it says is:<br /><br />[WinMySQLAdmin]<br />Server=C:/mysql/bin/mysqld-nt.exe<br />
#228528 - 11/29/0212:37 PMRe: Okay, now i broke it. Is it PHP or MySql?
[Re: TestPappy]
AllenAyres
I type Like navaho
Registered: 03/10/00
Posts: 25448
Loc: Texas
odd, you should have had it set when you set mysql up <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Anyways, add this:<br /><br />user=root<br />password=root<br /><br />under what you have. You can change the user or password, just be sure your scripts match. Add that and click on 'save' <img src="/forum/images/graemlins/smile.gif" alt="" />
I'm really sorry for being so complicated. But now i have:<br /><br />[WinMySQLAdmin]<br />Server=C:/mysql/bin/mysqld-nt.exe<br />user=root<br />password=blah<br /><br />but when I go and change config.inc.php to match i get horrible database errors.
[WinMySQLAdmin]<br />Server=C:/mysql/bin/mysqld-nt.exe<br />user=ssss<br />password=blah<br /><br />config.inc.php:<br /><br /> // ------------------<br /> // Database Variables<br /><br /> // What type of database are you running<br /> // current options<br /> // mysql, (postgres, sybase are available but untested)<br /> $config['dbtype'] = "mysql";<br /><br /> // Server hosting the database<br /> $config['dbserver']= "63.161.3.227";<br /><br /> // Username that has permissions to the database<br /> $config['dbuser'] = "ssss";<br /><br /> // Password for the database<br /> $config['dbpass'] = "blah";<br /><br /> // Name of the database<br /> $config['dbname'] = "mysql";<br /><br /> // Table name prefix (Do not edit after the initial install!)<br /> $config['tbprefix'] = "w3t_";
I think the problem may be using the "mysql" database within mysql I think that is reserved by the mysql program. you will need to create another database with a different name within mysql
Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
// Name of the database<br />$config['dbname'] = "mysql";<br /><br />Is your UBB.threads database named "mysql"? <img src="/forum/images/graemlins/shocked.gif" alt="" /><br /><br />MySQL creates its own database named "mysql" for storing privilege information, and some other stuff.
_________________________
UBB.threads beta tester / threadsdev.com moderator Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.