Help, I have trouble with mySQL configuration
mozillanerd
Joined: 2010-04-01
Posts: 9 |
![]() |
I have just installed XAMPP's version of mySQL. Its CD Collection that uses mySQL works just fine. However, when I attempt to execute gallery3/installer as follows: php installer/index.php -u xxxx -p xxxx -d mozillanerd -x moz (I have set the root and password in the commend to xxxx for security). The installer displays the following message: ==> Unable to connect to the database. I suspect that gallery3 does not know how to access the appropriate socket definition or the socket definition is incorrect. srwxrwxrwx 1 mysql mysql 0 2010-03-30 11:42 /var/run/mysqld/mysqld.sock The /opt/lampp/var/mysql/mysql.sock is Thanks |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
mozillanerd
Joined: 2010-04-01
Posts: 9 |
![]() |
On mine it says 'type' => 'mysql', |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
All of that information would have been entered by you during G3's install. Or possibly "default" settings set in php.ini Try putting correct information for the user, pass and database name and see if you can connect that way. |
|
mozillanerd
Joined: 2010-04-01
Posts: 9 |
![]() |
I have created a user kohana (database kohana is created automatically by phpMyAdmin) and issued the following with bad results: ==> Unable to connect to the database. For help you can try: ** INSTALLATION FAILED ** Sorry, it continues to tell me about the socket at /var/run/mysqld/mysqld.sock instead of I don't quite understand your comment 'All of that...'. |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
mozillanerd
Joined: 2010-04-01
Posts: 9 |
![]() |
Here is the new command - same results php installer/index.php -u mozillanerd -p #GAL#GAL -d mozillanerd -x moz ==> Unable to connect to the database. For help you can try: ** INSTALLATION FAILED ** in phpMyAdmin everything looks Ok. I don't think that we are dealing with the socket problem. Please review and help |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
mozillanerd
Joined: 2010-04-01
Posts: 9 |
![]() |
I try the command and I get WARN: uid is 0 but '/usr' is owned by 1000 I don't exactly know what that means - it looks like the firswall is off as to the log mysql keeps, this is what I the log has: 100402 11:42:43 [Note] /opt/lampp/sbin/mysqld: ready for connections. Note again that the socket mysql reports is different from that which the gallery3 installer finds. I also changed /etc/mysql/my.cnf and changed therein the socket definition and set it to '/opt/lampp/var/mysql/mysql.sock', but it made no difference - I don't know where gallery3 installer gets the value. So far I have not found it |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
3306 is the default MySQL port. If you have MySQL setup on a different port and php isn't configured to look there, that's why you're not connecting. Did you restart? Have you looked at phpinfo yet to see what it's reporting? Can you telnet to mysql at the port you have it running on? |
|
mozillanerd
Joined: 2010-04-01
Posts: 9 |
![]() |
As I described above, 100402 11:42:43 [Note] /opt/lampp/sbin/mysqld: ready for connections. mysql is ready and listening How do I telnet to mysql at the given port? |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
Quote:
How do I telnet to mysql at the given port? http://gallery.menalto.com/node/95317#comment-340199 ____________________________________________ |
|
mozillanerd
Joined: 2010-04-01
Posts: 9 |
![]() |
further, I tried ./mysqlshow -u mozillanerd -p #GAL#GAL -d 'mozillanerd' It looks like it is up and running showing database mozillanerd for user mozillanerd |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
mozillanerd
Joined: 2010-04-01
Posts: 9 |
![]() |
The following is reported by phpinfo for mySql Directive Local Value Master Value mysql is not designet to telnet, it I try, with I really appreciate you hanging in there. This is frustrating. The port issue is resolved, but the socke issue is not. |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
Here's what mine looks like and it just works I installed Apache, MySQL, PHP, etc all from my distribution's repository, not from XAMPP and it just works. [img]http://gallery.menalto.com/files/mysql.gif[/img] |
|
mozillanerd
Joined: 2010-04-01
Posts: 9 |
![]() |
Must be the way that XAMPP sets up the socket. I will investigate. For now I installed 4images with no problems on the same XAMPP insallation. |
|