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
#263352 - 12/08/0307:50 AMRe: Running on a local machine
[Re: thehamr]
dimopoulos
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.
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
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="" />
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
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.
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
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
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
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
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