You are not logged in.

#1 2007-10-18 20:33:17

tjololo
Member
Registered: 2007-05-10
Posts: 20

Problems getting php too connect to mysql

After my latest upgrade it seems like my site cant connect to mysql on the same machine. I have put in some echos in my code and found out that my site stops when it calls the functions: mysql_connect(....);. I don't get any error messages or anything and it worked before the upgrade.

---
tjololo

Offline

#2 2007-10-19 02:55:50

tardo
Member
Registered: 2006-07-15
Posts: 526

Re: Problems getting php too connect to mysql

backup your old php.ini file in /etc/php/ and mv php.ini.pacnew to php.ini. Edit it an uncomment mysql.so (make other changes as you see fit). Apparently the new config file is important.

Offline

#3 2008-04-18 01:40:51

jimmyeatapple
Member
Registered: 2008-03-11
Posts: 8

Re: Problems getting php too connect to mysql

This is the same exact issue I am having on a new install following the instructions to a T in the LAMP wiki

Offline

#4 2008-04-18 21:42:10

jimmyeatapple
Member
Registered: 2008-03-11
Posts: 8

Re: Problems getting php too connect to mysql

Sadly, installing Ubuntu's Lamp Install worked the first try.

The major difference looks to be php.

When you grab phpinfo, there mysql, and mysqli is missing from the configuration section in Arch, and yes, I uncommented mysql.so in the php.ini file.

I think the lamp how/to needs to be redone because something has broken them.

Offline

Board footer

Powered by FluxBB