Hi there,
I´m just getting started with Macs and actually I´m a bit desperate trying to get PHP and MySQL working. I´ve already done this on a PC many times without any problems. But on a Mac???
I installed PHP and MySQL like entropy.ch says.
First problem:
Even though I have put ALL error-reporting functions ON in the php.ini, I don´t get any error reports at all. The only thing I get when running a php-file is blank pages, that´s so annoying. PHP seems to be working alright, at least I have no problem running phpinfo.
Second problem:
When I run phpinfo I get the information (in the mysql section) that MySQL didn´t set any user nor host. But I need these to connect to a db. When you install MySQL on a PC these things (User, Host) are set automatically.
I have really tried hard: installed everything again twice, done all the installation-manuals available on the web...
If it is any help to you: I have checked with NetInfoManager that there is an mysql user. I don´t know ANY Unix, but I´m following the installation guides. I understood that I´m supposed to change the password for the mysql user. If I try, I get this:
[MIS-Computer:/usr/local/mysql] inti% sudo chown -R mysql:mysql data
[MIS-Computer:/usr/local/mysql] inti% sudo ./bin/safe_mysqld --user-mysql &
[1] 613
[MIS-Computer:/usr/local/mysql] inti% Starting mysqld daemon with databases from /usr/local/mysql/data
030806 11:52:29 mysqld ended
/usr/local/mysql/bin/mysqladmin -u root password XXXX
/usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
[1] + Done sudo ./bin/safe_mysqld --user-mysql
[Maria-Inti-Metzendorfs-Computer:/usr/local/mysql] inti%
Hope anybody has any hints for me!
I´m just getting started with Macs and actually I´m a bit desperate trying to get PHP and MySQL working. I´ve already done this on a PC many times without any problems. But on a Mac???
I installed PHP and MySQL like entropy.ch says.
First problem:
Even though I have put ALL error-reporting functions ON in the php.ini, I don´t get any error reports at all. The only thing I get when running a php-file is blank pages, that´s so annoying. PHP seems to be working alright, at least I have no problem running phpinfo.
Second problem:
When I run phpinfo I get the information (in the mysql section) that MySQL didn´t set any user nor host. But I need these to connect to a db. When you install MySQL on a PC these things (User, Host) are set automatically.
I have really tried hard: installed everything again twice, done all the installation-manuals available on the web...
If it is any help to you: I have checked with NetInfoManager that there is an mysql user. I don´t know ANY Unix, but I´m following the installation guides. I understood that I´m supposed to change the password for the mysql user. If I try, I get this:
[MIS-Computer:/usr/local/mysql] inti% sudo chown -R mysql:mysql data
[MIS-Computer:/usr/local/mysql] inti% sudo ./bin/safe_mysqld --user-mysql &
[1] 613
[MIS-Computer:/usr/local/mysql] inti% Starting mysqld daemon with databases from /usr/local/mysql/data
030806 11:52:29 mysqld ended
/usr/local/mysql/bin/mysqladmin -u root password XXXX
/usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
[1] + Done sudo ./bin/safe_mysqld --user-mysql
[Maria-Inti-Metzendorfs-Computer:/usr/local/mysql] inti%
Hope anybody has any hints for me!