U lebetse password ea motso ea kamehla ea VestaCP MySQL?Beha le ho fetola phasewete ea motso

Har'a liphanele tse ngata tsa taolo, tse ngataSEOBatho ba reka VPShaha sebaka sa marang-rang, khetha ho sebelisa phanele ea taolo ea Vesta CP.

  • hobane VestaCP Phanele ea taolo, ha e le hantle lifaele tsohle tsa tlhophiso li bolokiloe lifaeleng tsa conf.
  • LinuxNakong ea ts'ebetso ea ho kenya VestaCP tsamaisong, VestaCP e ke ke ea kopa ho kenya letsohoMySQLpassword ea motso.
  • Phasewete e hlahisoa ka bo eona ke VestaCP.

re ntse re kenaphpMyAdmin, mokhoa oa ho fumana le ho fetolaMySQL password ea kamehla?

Phasewete ea kamehla ea MySQL bakeng sa VestaCP e teng ho /usr/local/vesta/conf/mysql.conf faeleng.

SSH ho bona password ea kamehla ea MySQL

O ka kenya taelo e latelang ho SSH ho sheba password ea kamehla ea MySQL ▼

cat /usr/local/vesta/conf/mysql.conf

U lebetse password ea motso ea kamehla ea VestaCP MySQL?Beha le ho fetola phasewete ea motso

Fumana phasewete ea MySQL, 'me u tlalehe sebaka sa faele ea password ea MySQL, u ka kena ho phpMyAdmin database management.

U ka fetola password ea motso oa MySQL joang?

Ka kopo bona VestaCP e latelang CentOS Mokhoa oa ho fetola password ea motso oa MySQL.

Likhahlelo tsa 1:Kena ho MySQL ebe u kenya taelo e latelang ▼

mysql -uroot -p
  • Kenya phasewete ea motso ea MySQL eo u e boneng mohatong oa 1.
  • Ka mor'a ho kena ka katleho, etsa phetoho.

Likhahlelo tsa 2:Fetola password ea MySQL 

set password for root@localhost = password('新密码');

Likhahlelo tsa 3:Boemong ba ho kena ho MySQL, tsosolosa litumello

mysql> flush privileges;

Mokhoa oa ho fetola phasewete ea motso ntle le ho kena ho MySQL

mysqladmin -uroot -p旧密码 password 新密码

Kamora ho fetola phasewete ea motso ka mokhoa o kaholimo, o tlameha ho fetola phasewete ho file ea kamehla ea MySQL ▼

vi /usr/local/vesta/conf/mysql.conf
  • Fetola phasewete e fetileng ho password ea hau e teng.

Haeba phasewete e faeleng ea kamehla ea MySQL e sa fetoloa, "Phoso ea VestaCP: khokahano ho localhost failead" molaetsa oa phoso...

Bakeng sa tharollo, ka kopo sheba thuto ena▼

Palo e atolositsoeng:

Comments

Aterese ea hau ea lengolo-tsoibila e ke ke ea phatlalatsoa. Ho sebelisoa masimo a hlokahalang * Letšoao

Scroll ho Top