- Application Launcher → Applications → System → Configuration → Install Software
- search “mysql”
- click on “mysql” and “mysql-gui-tools”, click Accept to install
- Open “Terminal”
- su -
- cp /usr/share/mysql/mysql.servera mysql
- chkconfig --add mysql
- You should see this:
mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off - if not, the run the command below to make mysql run on runlevel 2,4,5:
chkconfig --level 245 mysql on - chown mysql:mysql mysql
- ls -al mysql
- You should see the below:
-rwxr-xr-x 1 mysql mysql 11960 Aug 18 17:42 mysql - cd /etc/
- cp my.cnf my.cnf.bak
- vim my.cnf
- Add in new lines under the
[mysqld]:
datadir=/home/mysql
user=mysql - cd /home/
- mkdir mysql
- chown mysql:mysql mysql
- mysql_install_db --datadir=/home/mysql/ --user=mysql
- cd /home/mysql/
- chown mysql:mysql -R *
- mysqladmin -u root password 'password'
- Now, you should able to log on via MySql Database Administrator gui to create new users & database.
- In the, Database Administrator gui, creatre schema; then create user and password “ermpassword”. Assigned all privileges in new schema to the user created
- Now you are goto go
Saturday, February 6, 2010
Setup MySQL on OpenSUSE 11.1
This is the guide to setup mysql on OpenSUSE 11.1, the steps will be slightly different if you are using other Linux distros, It also assuming you are using KDE
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment