1. start service: service mysqld start
┌─[lati]─[~]
└──╼ service mysqld status
Redirecting to /bin/systemctl status mysqld.service
mysqld.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; disabled)
Active: active (running) since pon 2013-11-25 13:28:14 CET; 2s ago
Process: 5746 ExecStartPost=/usr/libexec/mysqld-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
Process: 5672 ExecStartPre=/usr/libexec/mysqld-prepare-db-dir %n (code=exited, status=0/SUCCESS)
Main PID: 5745 (mysqld_safe)
CGroup: name=systemd:/system/mysqld.service
├─5745 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
└─5902 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql...
lis 25 13:28:11 lati mysqld-prepare-db-dir[5672]: The latest information abou...
lis 25 13:28:11 lati mysqld-prepare-db-dir[5672]: You can find additional inf...
lis 25 13:28:11 lati mysqld-prepare-db-dir[5672]: http://dev.mysql.com
lis 25 13:28:11 lati mysqld-prepare-db-dir[5672]: Support MariaDB development...
lis 25 13:28:11 lati mysqld-prepare-db-dir[5672]: Monty Program Ab. You can c...
lis 25 13:28:11 lati mysqld-prepare-db-dir[5672]: Alternatively consider join...
lis 25 13:28:11 lati mysqld-prepare-db-dir[5672]: http://kb.askmonty.org/en/c...
lis 25 13:28:12 lati mysqld_safe[5745]: 131125 13:28:12 mysqld_safe Logging ....
lis 25 13:28:12 lati mysqld_safe[5745]: 131125 13:28:12 mysqld_safe Starting...l
lis 25 13:28:14 lati systemd[1]: Started MariaDB database server.
2. go to mysql "admin shell"
mysql -u root -p [password is blank press enter]
3. in mysql shell execute-
use mysql;
MariaDB [(none)]> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [mysql]> update user set password=PASSWORD("marek1983") where User='root';Query OK, 4 rows affected (0.00 sec)Rows matched: 4 Changed: 4 Warnings: 0
flush privileges;
quit
Brak komentarzy:
Prześlij komentarz