View previous topic :: View next topic |
Author |
Message |
michel v Site Admin
Joined: 25 Jan 2002 Posts: 799 Location: Corsica
|
Posted: Wed Feb 06, 2002 6:22 pm Post subject: READ ME: MySQL, doh!, etc |
|
|
Many issues that our users encounter deal with MySQL, and how to set it up.
The point of this post is not to explain you how to create a MySQL db, or how to administer it. Ask these questions to your host.
The point is to give you a checklist of things that you should do, BEFORE asking for support in this forum.
1. Create a MySQL database. If you already have a MySQL database, you can skip this step. Note: you can use several instances of b2 in the same database if you wish.
2. Create a MySQL user; or use one that is already created.
3. Add the user to this database.
Most 'errors' occur because you forget one of these steps, especially the last one; so here you know what you got to do  |
|
Back to top |
|
 |
Birdangel
Joined: 25 Aug 2002 Posts: 6
|
Posted: Thu Sep 19, 2002 9:40 pm Post subject: another instance of b2 |
|
|
I read the readme.html file, but I didn't see anything about what to do if you already have a b2 blog on your server and you want to set up another one. Do I need to change the names of all the tables to different ones? |
|
Back to top |
|
 |
macshack
Joined: 17 Jul 2002 Posts: 1204 Location: Phoenix, Az
|
Posted: Thu Sep 19, 2002 11:30 pm Post subject: |
|
|
hi,
Quote: |
....
Do I need to change the names of all the tables to different ones?
|
Yes, or create a second DB.
Michael e |
|
Back to top |
|
 |
FantasyAngel
Joined: 25 Sep 2002 Posts: 1
|
Posted: Wed Sep 25, 2002 12:37 am Post subject: Erm.. and.. |
|
|
...how do we create a database? LoL I know its a stupid question but when it comes to computers IM DUMB! _________________ FantasyAngel |
|
Back to top |
|
 |
nessahead
Joined: 12 Mar 2002 Posts: 312 Location: Los Angeles, CA
|
Posted: Wed Sep 25, 2002 5:45 am Post subject: Re: READ ME: MySQL, doh!, etc |
|
|
michel v wrote: | The point of this post is not to explain you how to create a MySQL db, or how to administer it. Ask these questions to your host. |
=) _________________ raar! |
|
Back to top |
|
 |
theinfamousj
Joined: 14 Nov 2002 Posts: 2 Location: UNC-CH
|
Posted: Thu Nov 14, 2002 7:28 am Post subject: If you use Dreamhost |
|
|
If you use dreamhost and are still having these issues you need to GIVE IT A WHILE TO PROCESS. The creation of the MySQL database, username, and host are not instantaneous.
I don't know about other webhosts but I gave mine 2 hours to sit and it was golden.
Just a tip. _________________ --...dot every i and cross every t.-- |
|
Back to top |
|
 |
kraylus
Joined: 03 Dec 2002 Posts: 4
|
Posted: Tue Dec 03, 2002 7:49 pm Post subject: |
|
|
hehe, i use dreamhost!
didnt take mine quite two hours... more like 15 min. it works great though! i recommend anyone to dreamhost. |
|
Back to top |
|
 |
rubie
Joined: 16 Jan 2003 Posts: 2
|
Posted: Thu Jan 16, 2003 10:39 pm Post subject: Warning Error?? |
|
|
When I go to b2install.php I get this error:
Warning: Access denied for user: 'user@localhost' (Using password: YES) in /home/sites/kiwi-sweets.net/b2install.php on line 17
Warning: MySQL Connection Failed: Access denied for user: 'user@localhost' (Using password: YES) in /home/sites/kiwi-sweets.net/b2install.php on line 17
Can't connect to the database
Access denied for user: 'user@localhost' (Using password: YES)
I don't know if this makes a diffrence, but I just Active Webhosting. What is wrong? |
|
Back to top |
|
 |
mikelittle
Joined: 11 May 2002 Posts: 376 Location: UK
|
Posted: Thu Jan 16, 2003 11:45 pm Post subject: |
|
|
Make sure you set the correct values in b2config.php
Code: |
$dbname = 'b2'; // the name of the database
$dbhost = 'localhost'; // 99% chances you won't need to change this value
$dbusername = 'user'; // your MySQL username
$dbpassword = 'pass'; // ...and password
|
Mike _________________ Mike Little
http://zed1.com/journalized/
"Share what you know. Learn what you don't." |
|
Back to top |
|
 |
rubie
Joined: 16 Jan 2003 Posts: 2
|
Posted: Sat Jan 18, 2003 1:16 am Post subject: Warning Message still here |
|
|
I have this error:
Parse error: parse error in /home/sites/kiwi-sweets.net/b2config.php on line 36
Warning: Access denied for user: 'sites@localhost' (Using password: NO) in /home/sites/kiwi-sweets.net/b2install.php on line 17
Warning: MySQL Connection Failed: Access denied for user: 'sites@localhost' (Using password: NO) in /home/sites/kiwi-sweets.net/b2install.php on line 17
Can't connect to the database
Access denied for user: 'sites@localhost' (Using password: NO)
What is wrong? |
|
Back to top |
|
 |
Candle
Joined: 23 Dec 2002 Posts: 547
|
Posted: Sat Jan 18, 2003 1:50 am Post subject: Could be |
|
|
Wrong passwd or wrong users name or both .
Check to make sure if have both right . |
|
Back to top |
|
 |
macshack
Joined: 17 Jul 2002 Posts: 1204 Location: Phoenix, Az
|
Posted: Sat Jan 18, 2003 2:07 am Post subject: |
|
|
Hi,
look very carefully at line 35 and 36 of b2config.php. most likely a missing ';' or one too many or too few " ' ".
And as Candle said, while your there, make sure the user (mysql user) and password are correct. But with the parse error as described, PHP will stop parsing at that point and not see any of the rest of this file. It will try to use the other files and when it comes time to do the database query, guess what, the database user and password were not set because of the parse error, and bingo, your complaint about the user being incorrect....
regards,
michael e |
|
Back to top |
|
 |
fallenn
Joined: 18 Jan 2003 Posts: 4
|
Posted: Sat Jan 18, 2003 10:57 pm Post subject: |
|
|
I have this Quote: | Access denied for user: 'fairy_fallen@localhost' to database 'fairy_fallen' | [/quote] |
|
Back to top |
|
 |
macshack
Joined: 17 Jul 2002 Posts: 1204 Location: Phoenix, Az
|
Posted: Sat Jan 18, 2003 11:04 pm Post subject: |
|
|
Hi,
First, did the db get created and is the db name 'fairy_fallen' and the MYSQL user 'fairy_fallen'.
michael e
Last edited by macshack on Sat Jan 18, 2003 11:05 pm; edited 1 time in total |
|
Back to top |
|
 |
fallenn
Joined: 18 Jan 2003 Posts: 4
|
Posted: Sat Jan 18, 2003 11:04 pm Post subject: |
|
|
yes, thats what my host told me it was. |
|
Back to top |
|
 |
|