Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 09:08:26 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155442 Posts in 21702 Topics by 7731 Members
Latest Member: zvaigzdzius
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Install stalled on mysql problem?  (Read 675 times)
adp

Offline Offline

Posts: 4


« on: October 21, 2008, 09:34:53 PM »

I've managed to install Apache2, PHP5 and MySQL5 on my Macbook running OS X 10.5.5. The installation is a Macports one, so files are all in /opt/local/
But I can't get the Baker 2.7.0 installation to save - persistent errors point to something boneheaded that I must have done.

Line 348 in save.php is one error:

// Try connecting to database    
if(!mysql_connect(DB_HOST, DB_USERNAME, DB_PASSWORD)) {
    set_error('Database host name, username and/or password incorrect. MySQL Error:<br />'.mysql_error());
}

The other one (when I tried something else) is from class.database.php:

function connect() {
        $status = $this->db_handle = mysql_connect(DB_HOST, DB_USERNAME, DB_PASSWORD);
        if(mysql_error()) {

Looks like something's wrong with the hostname, user and password I'm entering to give WB access to the database I created.

I used Webmin to create the database BakerBD. Had to alter permission to 755 to be able to see inside the mysql5 directory to confirm the path:

 /opt/local/var/db/mysql5/BakerDB

What do I enter in the WB install configuration in Step 4?

Host Name:  Is it just "localhost"? or is it a longer path?
User Name: I use "root" and a root password to get to the mysql> prompt in Terminal - are those the ones I enter here? Hasn't worked so far.

Maybe it's something else in the install information that I'm screwing up? Probably other permissions?
Baffled!  Any help much appreciated.
Logged
doc
Guest
« Reply #1 on: October 21, 2008, 10:39:09 PM »

Hello,

is MySQL running in strict mode? This may cause problems.

Maybe also have a look to the Installation Guide from the help website http://help.websitebaker.org/pages/en/downloads.php.

Regards Christian
 
Logged
adp

Offline Offline

Posts: 4


« Reply #2 on: October 21, 2008, 11:39:03 PM »

Thanks for the feedback. Hadn't heard of "strict mode" but managed to find how to disable it. Unfortunately, no effect on the installation.

I've used the installation guide throughout the process. I still suspect there's something in my MySQL setup that's causing the problems, but it hasn't revealed itself : -)
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!