programming/Linux
MariaDB5.5 설치 과정 (1) root password 설정
워아인이
2021. 7. 8. 15:08
DB 설치가 완료되었으면 실행
[root@localhost init.d]# /etc/init.d/mysql start
Starting MariaDB SUCCESS!
서비스 확인
[root@localhost init.d]# netstat -an | grep 3306
tcp 0 0 :::3306 :::* LISTEN
root 패스워드 설정
[root@localhost init.d]# mysqladmin -u root password
New password:
Confirm new password:
root로 mysql 접속
[root@localhost init.d]# /usr/bin/mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 5.5.68-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>