Ticket #3 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Installation question (mysql)

Reported by: dmz@… Owned by: florian
Priority: major Milestone:
Component: other Version: 0.3
Keywords: install Cc:

Description

Hello,

I am trying to install phpaga and when it is trying to install I get the following error:

Upgrade to version: File: /path/sql/phpaga_tables.mysql Error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

However I'm not using a local mysql database. Here is my DSN setting (I edited lib/db.php and had it echo this out before it did a connect): mysql://dmzs-trac:password@dmzs-db3.dmzs.com/dmzs-trac

Any suggestions?

Attachments

Change History

Changed 2 years ago by florian

  • priority changed from trivial to major
  • status changed from new to assigned
  • version set to 0.3
  • type changed from support to defect

You have discovered a bug. Due to the way queries are processed by PHP's MySQL interface, SQL scripts need to be run through the mysql cli binary, and the current installer does not honor the host setting of the database server.

I have opened this as a bug and am working on a solution.

Changed 2 years ago by florian

I have submitted a new version of lib/db.php. You can download it from http://svn.phpaga.net/svn/phpaga/trunk/lib/db.php

Can you please check whether this solves the problem?

Changed 2 years ago by dmz@…

  • status changed from assigned to closed
  • resolution set to fixed

db patch worked! Thanks

Add/Change #3 (Installation question (mysql))

Author



Change Properties
<Author field>
Action
as closed
 
Note: See TracTickets for help on using tickets.