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
-
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...
-
As of Fedora 6 rt-3.6.3 has been available as an RPM. The Fedora RPM has since been rebuilt for Rhel5 using the rt-3.6.6 source code. This d...
-
I recently found it necessary to list all installed Perl modules on one of my linux servers. I wouldn't have thought that it would be as...
-
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...
-
Many months after building the RT 3.6.6 rpm repository, I finally got around to gathering up all the required perl modules (in rpm format) f...
-
As a Mac user of less than a year I can sympathize with how painful a switch can be. Many of the keyboard shortcuts I lived by under the tyr...