Looks like mysql does not run. Check Yast - System - Runlevel editor, Activate if needed.
BTW, how did you install LAMP? According to the path to it, you used an external package. Most people simply install through Yast, that way packages would never end up in /opt
payam@win7:/etc/init.d> sudo ./mysql restart
root’s password:
Restarting service MySQL
Shutting down service MySQL done
Starting service MySQL warning: /var/run/mysql/mysql.sock didn’t appear within 30 seconds
chmod: cannot access `/var/run/mysql/mysqld.pid’: No such file or directory
payam@win7:/etc/init.d>
You can edit your posts within a time window of 10 minutes.
Installing/configuration attempts the xampp packages may very well have broken your install. I cannot see that. Simply removing /opt should not be done either. Specially since you ran some security script/program. Mysql not starting is no good.
If this is not a production environment, which I thoroughly hope, reinstall. Always first check for openSUSE packages.
My advice: reinstall openSUSE. Then install the Lamp pattern through the software installer. phpMyAdmin can be found through software.opensuse.org: Search Results . Activate mysql, apache2 in the runlevel editor, set a root password in mysql, create an admin user for phpMyAdmin, done.
Extra tips: configure the webroot and mysql database to be out of the root filesystem, i.e. on an other partition.
> Well I just rm -rf /opt and installed LAMP through yast and the mysql
> daemon still doesn’t run… and now neither does apache2.
how did you start mysql after reinstalling via yast? by default, it doesn’t start automatically. i use “rcmysql start” for this, or start it via runlevel editor if you want it always.
apache2 needs to be started in the same way (rcapache2 start or runlevel), and configured (/etc/apache2/httpd.conf and, depending on what you’re doing, other files in subdir.s thereunder).
I’ve reinstalled the external package again back into /opt, and it appears to be working again. How do you remove the LAMP install that I installed through yast? it doesn’t allow me to uncheck the box :S
If I majorly stuff this up, then I’ll reinstall openSUSE. I’ve still got some life left in me before I give in.