Apr
11
2008
0

MySQL Installation (ports)

1,047 views
# cd /usr/ports/databases/mysql51-server
# make WITH_CHARSET=utf8 WITH_XCHARSET=all WITH_COLLATION=utf8_unicode_ci
 
# make install && make clean
# mysql_install_db (/usr/local/bin/mysql_install_db)
 
# chown -R mysql /var/db/mysql/
# chgrp -R mysql /var/db/mysql/
 
# /usr/local/bin/mysqld_safe -user=mysql &
 
edit /etc/rc.conf
add this
mysql_enable="YES"
 
Change the password to root user
# /usr/local/bin/mysqladmin -u root password new-password

Optionally, copy either my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf or my-innodb-heavy-4G.cnf (depending on the usage and utilization of MySQL server) as my.cnf
to /var/db/mysql which will enable you to tweak and change the configuration of server-specific MySQL server options by editing the file.

Written by Pipo in: FreeBSD & Linux | Tags: , ,
Apr
10
2008
0

MySQL Reset Password

1,186 views
# killall mysqld
# /usr/local/bin/mysqld_safe --skip-grant-tables --skip-networking &
# mysql -u root
mysql> use mysql;
mysql> UPDATE user SET Password=PASSWORD("1234") WHERE User="root";
mysql> exit;
# killall mysqld
# /usr/local/etc/rc.d/mysql-server.sh start

Written by Pipo in: MySQL | Tags: ,
Page 1 of 11

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes