php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#228515 - 11/28/02 12:53 PM Okay, now i broke it. Is it PHP or MySql?
SchoolScandals Offline
Journeyman

Registered: 07/27/02
Posts: 138
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 />

Top
#228516 - 11/28/02 01:06 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: TestPappy]
dimopoulos Offline
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 />
_________________________
Nikos

Top
#228517 - 11/28/02 01:18 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: Hal_dup2]
SchoolScandals Offline
Journeyman

Registered: 07/27/02
Posts: 138
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?

Top
#228518 - 11/28/02 01:26 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: TestPappy]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Is this a Windows box that you are running your forum and also do you have WinMySQLAdmin installed?<br /><br />Warm regards<br /><br />Nikos
_________________________
Nikos

Top
#228519 - 11/28/02 01:28 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: TestPappy]
Dave_L_dup1 Offline
Addict

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.

Top
#228520 - 11/28/02 01:29 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: joeuser]
SchoolScandals Offline
Journeyman

Registered: 07/27/02
Posts: 138
It's a windows 2000 box. I have mysqladmin installed but can't figure out how to use it. I really hate mysql. It'll be the death of me.

Top
#228521 - 11/28/02 01:57 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: TestPappy]
dimopoulos Offline
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
_________________________
Nikos

Top
#228522 - 11/28/02 09:07 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: Hal_dup2]
SchoolScandals Offline
Journeyman

Registered: 07/27/02
Posts: 138
It's a red light. I click to start it, it turns green for about a second then back to red. <br /><br />By the way,<br /><br />Happy T.G. everyone

Top
#228523 - 11/28/02 09:39 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: TestPappy]
SchoolScandals Offline
Journeyman

Registered: 07/27/02
Posts: 138
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.

Top
#228524 - 11/28/02 10:52 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: TestPappy]
Dave_L_dup1 Offline
Addict

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.

Top
#228525 - 11/29/02 12:03 AM Re: Okay, now i broke it. Is it PHP or MySql? [Re: joeuser]
SchoolScandals Offline
Journeyman

Registered: 07/27/02
Posts: 138
I can't even figure out how to create a new user. Anyone have any linkage?

Top
#228526 - 11/29/02 10:12 AM Re: Okay, now i broke it. Is it PHP or MySql? [Re: TestPappy]
AllenAyres Administrator Offline
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="" />
_________________________
- Allen wavey
- What Drives You?

Top
#228527 - 11/29/02 11:16 AM Re: Okay, now i broke it. Is it PHP or MySql? [Re: SurfMinister]
SchoolScandals Offline
Journeyman

Registered: 07/27/02
Posts: 138
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 />

Top
#228528 - 11/29/02 12:37 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: TestPappy]
AllenAyres Administrator Offline
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="" />
_________________________
- Allen wavey
- What Drives You?

Top
#228529 - 11/29/02 12:49 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: SurfMinister]
SchoolScandals Offline
Journeyman

Registered: 07/27/02
Posts: 138
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.


Edited by SchoolScandals (11/29/02 12:50 PM)

Top
#228530 - 11/29/02 01:12 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: TestPappy]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
Download the my.ini and the config.inc.php to double check they match <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#228531 - 11/29/02 01:41 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: SurfMinister]
SchoolScandals Offline
Journeyman

Registered: 07/27/02
Posts: 138
[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_";

Top
#228532 - 11/29/02 04:10 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: TestPappy]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
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

Top
#228533 - 11/29/02 04:13 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: TestPappy]
Dave_L_dup1 Offline
Addict

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.

Top
#228534 - 11/29/02 07:07 PM Re: Okay, now i broke it. Is it PHP or MySql? [Re: joeuser]
SchoolScandals Offline
Journeyman

Registered: 07/27/02
Posts: 138
Yeah I've been using that one. How do i create a new one?

Top
Page 1 of 2 1 2 >


Who's Online
1 registered (Ruben Rocha), 25 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks