암호 초기화
mysql@> killall mysqld (mysql 데몬을 정지합니다.)
mysql@> cd /usr/local/mysql or /var/lib/mysql
(sql이 깔린 곳으로 갑니다)
명령어랑 데이터는 다른곳에 위치한답니다...^^
설치 방법에 따라서 위치가 다르니 차분히 찾아
보시길....
mysql@> ./bin/safe_mysqld --skip-grant &
myslq 초기화 하는 명령입니다..
다시 새 암호 넣어주기
mysql@> ./bin/mysql
mysql>use mysql
mysql>update user set password=password('새암호') where user='root';
(root 암호 변경하는 거죠. '새암호' 자리에 새로 정할 암호를 넣으세요
예>update user set password=password('123') where user='root';
mysql> flush privileges; //mysql 새로 리플레시 시키는 명령어
mysql> \q
mysql@> ./bin/mysql -uroot -p123 으로 들어와지면 성공입니다.
끝!
ps :
mysql@> ./bin/mysqladmin -uroot -p123 reload
재시작 명령입니다. 위에서 flush privileges 했기때문에 안해도 되지만 의심 나시면 해보세요-.ㅡ^
mysql
bibaram2005.02.18 · 2분 읽기 · 조회 4,135
mysql root password 분실했을 때 대처법..
bibaram2005.02.18 · 2분 읽기 · 조회 4,135이어서 읽기
html↗
favicon.ico Status 404 해결방법
favicon.ico 파일이 있어서 경로를 직접 설정해주는 게 최선이지만favicon.ico가 없다면 아래와 같이 넣어준다. <html> <head> <link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"> </head…
2020.09.25·1분 읽기
php↗
Codeigniter api에서 어떤 곳에서 보낸 json
$aData = var_export(file_get_contents('php://input'),TRUE); $aArr = json_decode(str_replace("'", "", $aData), true); 버전에 따라 다를 수도 있음 $this->input->raw_input_stream 이렇게 해보면 됨
2020.09.11·1분 읽기
server↗
apache 이미지 로그 안쌓이게 하기
웹서버를 운영하다 보면 Apache log 가 엄청나게 많이 쌓인다. logrotate 가 실행되고 있다면 어느 정도 로그가 정리가 되겠지만 아니라면 로그가 쌓여서 서버가 엄청 느려지거나 서버가 다운될 수도 있다. ErrorLo…
2020.02.17·2분 읽기
댓글 0
아직 댓글이 없습니다.