Start the mysql service from YaST. The mysql command is just the client.
Run the script
mysql_secure_installation
This will prompt you for a root password (root in mysql, not root in Linux, so can be different passwords).
The database user and database name are application dependent. Usually the app will either ask you to provide the root password so that it can create the database and assign permission to the database user, or ask you to do something like this from the CLI mysql client.
create database joomla;
grant all on joomla.* to username@localhost identified by 'somepassword';
I could explain all here, but there’s very good info in the docs that come with a mysql install. Step by step instructions can also be found googling around a bit.
FWIW: amarok contains a nice set of instructions on how to setup a database and a user for it.
MySQL has to be started at boot, done so through Yast-System-Runlevel, activate mysqld.
You must have set it before then. Too bad if you forgot it. Or perhaps you already had a database in /var/lib/mysql from a previous install of the package. For reasons of not destroying data, reinstalling the mysql packages doesn’t remove /var/lib/mysql where the databases (and the password) are kept.
Here’s what you do if you have no data in the mysql that you want to keep and you have forgotten the root password.
Uninstall the mysql package (server).
Remove /var/lib/mysql with rm -fr.
Reinstall the mysql package. This will recreate /var/lib/mysql.
Run mysql_secure_installation and set the password.
There is another way involving disabling authentication in /etc/my.cnf that you can read about in the online mysql documentation at dev.mysql.com. You would use this method if you have data that you want to preserve.
There was a shell command I used to set the mysql password (not run from within mysql) and when I used it i didn’t specify the host name with the user name. I feel that is where I went wrong, is there a fix for that? What is the shell command to set the mysql password in linux?
Thanks to all for help, I blew suse 11.2 away and started over since it was a fresh install anyway. Ran the script previously mentioned and now have working mySql server.