I have a hard time remembering this stuff, I'm spoiled by GUI tools. For anyone who needs it I posted some mysql cli stuff here. Nothing new or earth shattering, just notes for the lazy.
-------------------------------------------------------------------------------------GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'some_pass' WITH GRANT OPTION;GRANT SELECT ON database.* TO 'user'@'%' IDENTIFIED BY 'password'SET PASSWORD FOR 'username'@'%' = OLD_PASSWORD('password');mysqldump -u USER -pPASSWORD DATABASE > filename.sqlmysqldump --user="user" --password="pass" --opt --compact --quick --verbose --host="server.fqdn" --databases MyFavDB --result-file=/root/outfile.sqlmysqldump --opt --extended-insert --single-transaction --create-options --default-character-set=utf8 --user="root" --password="*****" --host="server.fqdn" --databases dbname > "/data/backup.sql" mysql dbname < filename.sql
If you upgrade the RHEL/Fedora bundled version MySql with the rpmp version from MySql.com you will find the service will fail to start. To get MySQL running again via the default init scripts do the following:
user=mysql
#basedir=/var/lib
mkdir /var/run/mysqld
chown mysql.mysql /var/run/mysqld
service mysql start
Popular
-
I have a hard time remembering this stuff, I'm spoiled by GUI tools. For anyone who needs it I posted some mysql cli stuff here. Nothing...
-
I found this out a while ago when looking for info on reading .DMG files on Windows or Linux boxes. Long story short, its a very painful pro...
-
sed (Stream EDitor) refers to a Unix utility for parsing text files and the programming language it uses to apply textual transformations to...
-
For all those people who did a clean install of Snow Leopard and do not want to restore any data from Time Machine, you may find manually re...