79437
Assigning Anonymous Account Passwords
The mysql commands in the following instructions include a -p option based on the assumption that
you have set the root account passwords using the preceding instructions and must specify that password when connecting to the server.
To assign passwords to the anonymous accounts, connect to the server as root, then use either set
PASSWORD or UPDATE. Be surę to encrypt the password using the PASSWORD () [1283] function.
To use set password on Windows, do this:
shell>raysql -u root -p
Enter password: (enter root password here)
mysql>SET PASSWORD FOR * ' 6 ' localhost' = PASSWORD (' newptrd') ;
To use set password on Unix, do this:
Shell>rnysql -u root -p
Enter password: (enter root password here)
mysql>SET PASSWORD FOR ''6'localhost' = PASSWORD('newpwd'); mysql>SET PASSWORD FOR ' ' 6 ' host_name' = PASSWORD (' newpwd') ;
To set the anonymous-user account passwords with a single update
statement, do this (on any
platform):
shell>mysql -u root -p
Enter password: (enter root password here)
mysql>UPDATE mysql.user SET Password = PASSWORD('newpwd')
->WHERE User inysql>FLUSH PRIVILEGES;
The flush statement causes the sen/er to reread the grant tables.
Without it, the password change
remains unnoticed by the server until you restart it.
Wyszukiwarka
Podobne podstrony:
Assigning root Account Passwords The root account passwords can be set several ways. The following dIf you want 10 credits of introductory management accounting modules, the following alternatives aretmta1 Planning and cutting a shirt or smock The pieces are simple in shape, so the following instru30,31 ^LH- Giving instructions Fili in the missing words in the following instructions. Choose fromredsnOw 0.9.6b5 Please use the following instructions to enter DFU modę 1. Hołd down the Power (cornredsnOw 0.9.6b5 Please use the following instructions to enter DFU modę 2. Without releasing the PowredsnOw 0.9.6b5 Please use the following instructions to enter DFU modę 3. Without releasing the HomCopy an Existing Data Directory With this method, any MySQL accounts or user data present in the dat2. A change in the persons authorised to administer the funds in the account requi72 S. Źróbek, R. Cellmer, J. Kuryj In the analyses, it was also taken into account that the use of m183 poetry took root in Polish medieval literaturę accounts for the evident lack of interest in theRunning MySQL in ANSI Modę You can tell mysąldto run in ANSI modę with the --ansi[428] startup optioEvent Reports Generated in MySQL Cluster In this section, we discuss the types of event logs providewięcej podobnych podstron