php forum
php mysql forum
php mysql smarty
 
Topic Options
#263351 - 11/23/03 09:07 PM Running on a local machine
Barney Offline
Lurker

Registered: 03/23/03
Posts: 8
Just installed MySql on my local machinf ro playing around with UBB Threads. It APPEARS to have installed but when I start winsqlmyadmin I cannot create or drop tables.<br /><br />I can create tables from the command line using create command.<br /><br />And...when I try to verify the UBB Threads install it bombs out at the database setting.<br /><br />Step 3 <br />Here we are checking your database connectivity and permissions. If any of these checks fail you will need to correct the errors in order to proceed. <br />Connecting to server FAILED <br />Connecting to database FAILED <br /> One or more of the above checks failed. Click the button below to return to the previous screen to verify your settings.<br /> <br />UBB.threads Installation Wizard <br /> <br /><br />Step 2 <br />This next step consists of gathering the database information. You will need to know the server the mysql engine is running on, the database name, the username, and the password if necessary. <br /> Database server localhost<br />Database name ubbthreads<br />Database user xxxxxxxxxx<br />Database password xxxxxxxxx<br />Tablename prefix (no spaces) <br /><br />Any ideas or suggestions

Top
#263352 - 12/08/03 07:50 AM Re: Running on a local machine [Re: thehamr]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
What you can do is install phpMyAdmin on your local box and put the correct username/password information for your localhost. Then go to the mysql database and browse through the users table. Have a look what your .threads user has access to (especially the Index, Drop and Create options). Editing the record to have those values to yes and then issue the command:<br /><br />FLUSH PRIVILEGES;<br /><br />to update the permissions of the users.
_________________________
Nikos

Top
#263353 - 02/04/04 02:32 PM Re: Running on a local machine [Re: Hal_dup2]
CoralineSage Offline
Newbie

Registered: 02/04/04
Posts: 14
Hi there, I'm having a similar error with my installation. Just installed MySql on my local machine and when running install.php I get to step 3 with the following errors:<br /><br />Here we are checking your database connectivity and permissions. If any of these checks fail you will need to correct the errors in order to proceed.<br />Connecting to server FAILED<br />Connecting to database FAILED<br />One or more of the above checks failed. Click the button below to return to the previous screen to verify your settings.<br /><br />The following is the info that I entered on Step 2<br />This next step consists of gathering the database information. You will need to know the server the mysql engine is running on, the database name, the username, and the password if necessary.<br />Database server localhost<br />Database name ubbthreads<br />Database user xxxxxxxxxx<br />Database password xxxxxxxxx<br />Tablename prefix (no spaces)w3t_<br /><br />I can access the database from the command line fine, so I know it exists and that the username and password are correct. Pleaser help. thanks. <br />CoralineSage

Top
#263354 - 02/04/04 05:53 PM Re: Running on a local machine [Re: drkknght2]
DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
Have you tried user root with no password?
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#263355 - 02/05/04 09:01 AM Re: Running on a local machine [Re: eslmix]
CoralineSage Offline
Newbie

Registered: 02/04/04
Posts: 14
Hi, thanks for replying. Yes, I have just tried root with no password and I still get the same message. <br /><br />On Mysql I entered GRANT ALL PRIVILEGES ON UBBthreads.* to []user@localhost[/] IDENTIFIED BY 'userpass' WITH GRANT OPTION; <br /><br />so I tried:<br />user + userpass<br />[]user@localhost[/] + userpass<br />root + rootpass (my root password)<br />root with no password<br /><br />I also tried no user name or password (left both fields blank) and also tried my user as apache with no password since my httpd runs as apache. <br /><br />please help <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" />

Top
#263356 - 02/05/04 09:13 AM Re: Running on a local machine [Re: drkknght2]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
gotta be a hiccup in the mysql<br /><br />Where are you granting the permissions from command line or the mysqladmin.exe
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#263357 - 02/05/04 09:49 AM Re: Running on a local machine [Re: sf49rminer]
CoralineSage Offline
Newbie

Registered: 02/04/04
Posts: 14
command line

Top
#263358 - 02/05/04 02:27 PM Re: Running on a local machine [Re: drkknght2]
CoralineSage Offline
Newbie

Registered: 02/04/04
Posts: 14
Actually it was a problem with PHP config file. I fixed it, went through a few other steps and then got to create table.php page (I think since I can't back track my steps) and I got a whole bunch of errors like:<br /><br /><br />SQL ERROR: Unable to do_query: SELECT U_Username,U_Password,U_SessionId, U_StyleSheet, U_Status, U_Privates, U_FrontPage, U_Number, U_Banned FROM w3t_Users WHERE U_Number = ''<br />Table 'UBBthreads.w3t_Users' doesn't exist<br />Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /usr/local/apache2/htdocs/ubbthreads/mysql.inc.php on line 133<br /><br />Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/ubbthreads/mysql.inc.php:219) in /usr/local/apache2/htdocs/ubbthreads/ubbt.inc.php on line 269<br /><br />What am I missing now?<br /><br />Thanks<br />Chrys

Top
#263359 - 02/05/04 02:46 PM Re: Running on a local machine [Re: drkknght2]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
Table 'UBBthreads.w3t_Users' doesn't exist<br />This indicates that your users table didn't get created for some reason. Try starting from scratch. Since you have the php issue out of the way, it should go pretty smoothly.

Top
#263360 - 02/06/04 07:41 AM Re: Running on a local machine [Re: BrokenToy]
CoralineSage Offline
Newbie

Registered: 02/04/04
Posts: 14
Hi Slayer, thanks for replying, but how exactly do I start it from scratch? I tried going to "install.php" again but it tells me somehting like "it's already been installed". <br /><br />Plus, I don't think any of the tables got created at all since my database folder is still empty...<br /><br />Anyhow, let me know when you can. I really appreciate your help. <br /><br />coraline

Top
#263361 - 02/06/04 08:30 AM Re: Running on a local machine [Re: drkknght2]
CoralineSage Offline
Newbie

Registered: 02/04/04
Posts: 14
Hi All, actually, I restarted (run install.php from scratch) by commenting out some of the PHP code from install.php, unfortunately, after "step 6" where it says you're now ready to create the tables, I get the same error <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" /><br /><br /><br />help?<br />thanks<br />coraline

Top
#263362 - 02/06/04 09:58 AM Re: Running on a local machine [Re: drkknght2]
CoralineSage Offline
Newbie

Registered: 02/04/04
Posts: 14
Hi again <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> I'm actually pretty good for now. I figured some other stuff out. <br /><br />thanks for all your help. I really appreciate it. <br /><br />coraline

Top
#263363 - 02/06/04 11:17 AM Re: Running on a local machine [Re: drkknght2]
CoralineSage Offline
Newbie

Registered: 02/04/04
Posts: 14
Ok, more glitches....everytime I create a new user I get the following message:<br />Fatal error: Call to undefined function: mail() in /usr/local/apache2/htdocs/ubbthreads/admin/...<br /><br />I also get a similar error message when I tried to "send mail to all users". It sounds like my mail server connection wasn't set up, but I don't remember having had to set that up...i.e., it wasn't one of the steps. <br /><br />I can make the edits on whatever file I shoould if necessary, can someone just point me in the right direction?<br /><br />Thanks again!<br />coraline

Top
#263364 - 02/06/04 06:09 PM Re: Running on a local machine [Re: drkknght2]
navaho Offline
Veteran

Registered: 10/05/00
Posts: 2518
Loc: navahoville! :D
You'll find your mail setup in php.ini, wherever that may be on your machine
_________________________
Picture perfect penmanship here.

Top
#263365 - 02/09/04 09:56 AM Re: Running on a local machine [Re: zerind]
CoralineSage Offline
Newbie

Registered: 02/04/04
Posts: 14
Hi Navaho, thanks for replying. I set my SMTP on php.ini to my SMTP IP address but I still get the same error message, i.e. call to undefined function mail()...<br /><br />any ideas?<br /><br />thanks

Top


Who's Online
1 registered (Gizmo), 30 Guests and 10 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