install Mysql di slackware

jika kita install full slackware, maka paket mysql sudah terinstall. cek apakah sudah terinstall atau belum ?

root@slackware:~# ls /var/log/packages/ | grep mysql
mysql-5.0.51b-i486-1

jika belum install paket mysql, paket mysql ada di cd / dvd distro mysql :
root@slackware:~# installpkg mysql.*.tgz

*buat database & table mysql*
#mysql_install_db

*Ubah owner dari direktori data MySQL ke user dan group “mysql”*
#chown -R mysql.mysql /var/lib/mysql/
# chmod -R 755 /var/lib/mysql/

*jalankan mysql, terlebih dahulu init script nya dirubah executable:*
#chmod +x /etc/rc.d/rc.mysqld
# /etc/rc.d/rc.mysqld start

*beri password mysql untuk user root*
# mysqladmin -u root password password_anda

*akses ke mysql*
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 1
Server version: 5.0.51b Source distribution

Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the buffer.

mysql>

Advertisements

2 thoughts on “install Mysql di slackware

    • mas tolong dong aku masih menemukan eror spt ini
      ‘/var/lib/mysql/mysql.sock’
      pake slackware 12.2
      please solusinya ya…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s