LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Problems installing MySql & PHP from rpms? (https://www.linuxquestions.org/questions/fedora-35/problems-installing-mysql-and-php-from-rpms-352402/)

Nelsond 08-11-2005 11:43 PM

Problems installing MySql & PHP from rpms?
 
I am new to Fedora 3 and trying to get my way around it. I am trying to install mysql-server, mysql-client, and php from rpms. i have checked and and can confirm that i have all these rpms on my machine. i am however not able to able to install and start any of these services despite repeated trials to run the appropriate install commands. I did log on as super user and am tearing my hair off trying to figure this out. Please help! when i use YUM it asks for gpg keys. when i try to do the # mysql_install_db it asks me to "make install" first before running this script.

jayemef 08-11-2005 11:58 PM

Both PHP and MySQL come with FC3, so you may already have them installed (though they are not the most current versions). You can check with
Code:

$ rpm -q mysql
$ rpm -q php

If you have MySQL, you can start it with
Code:

# /etc/init.d/mysqld start
If one or neither of these packages are installed, you can install them with your Fedora installation discs and system-config-packages.

As for yum, I strongly suggest checking the FAQ on how to set it up (note: link is for FC3).

Nelsond 08-12-2005 09:59 AM

Problems starting mysql, Apache and PHP
 
Thanks for the reply. I tried the suggestions you gave me and i was able to confirm that both mysql and php are installed on my computer. I cannot get mysql started however because i think i have it in a different folder than your solution suggested. i also get the error 2002 message, "Cant connect to the local mysql server through the socket /var/lib/mysql/mysql.sock".

I also searched for the location of mysql and i find it is in /usr/bin/mysql also in /usr/lib/mysql and also usr/share/mysql.

where do i start? how do i get mysql to start?

nelson

Nelsond 08-12-2005 11:09 AM

i might have spotted the problem..still no solution
 
i found out that i do not have mysqld file in the init.d folder because 1. i looked for it there and it is not there 2. when i run the /etc/init.d/mysqld start script, it says no such directory found. Now question is:
how do i get the mysqld file and put it in the init.d folder? any help will be greatly appreaciated. i am begginig to get an even better grasp of how FC3 is organized/works.
thanks
nelson


All times are GMT -5. The time now is 10:11 PM.