To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h hrmsustt.szoffice.mtrsz.local password 'new-password'
Alternatively you can run:
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
Please report any problems with the ./bin/mysqlbug script!
The latest information about MySQL is available on the web at
Support MySQL by buying support/licenses at http://shop.mysql.com
WARNING: Found existing config file ./my.cnf on the system.
Because this file might be in use, it was not replaced,
but was used in bootstrap (unless you used --defaults-file)
and when you later start the server.
The new default config file was created as ./my-new.cnf,
please compare it with your file and take the changes you need.
create database mtrszsurvey2013 default character set utf8;
grant all on mtrszsurvey2013.* to mysql@localhost identified by 'password';
grant all on mtrszsurvey2013.* to firstname.lastname@example.org identified by 'password';
grant all on mtrszsurvey2013.* to email@example.com identified by 'password';
grant all on mtrszsurvey2013.* to firstname.lastname@example.org identified by 'password';
grant all on *.* to root@'%' identified by 'password';
来自 “ ITPUB博客 ” ，链接：http://blog.itpub.net/23757700/viewspace-776654/，如需转载，请注明出处，否则将追究法律责任。