|
Search |
phpMyAdmin modifiointi PhpMyAdmin-hakemisto? kannattaa suojata tietokannan hakkeroinnin estämiseksi. Webhotelleissa mukana tuleva phpMyAdmin on jo konfiguroitu näin. Tämä ohje käsittelee tietokannan kirjautumistunnuksia. PhpMyAdmin? on asennettu webhotelleihin automaattisesti. Voit palauttaa phpMyAdminin jos olet muuttanut MySQL salasanaa. Jos sinulla ei ole esiasennettua phpMyAdminia voit asentaa sen näillä ohjeilla. Muista tällöin suojata phpMyAdmin. Kaikille OVH:n tuotteille Tietokannan kokoa ei ole rajoitettu. Riippuen tuotteesta MySQL-tietokannalla on suositeltu koko. Kun se ylittyy kanta siirtyy automaattisesti palvelimelle jolla pidetään suurempia kantoja. Saatat tarvita pääsyä varmuuskopioihisi (SaveBasesMySQLSaveBasesMySQL). Pääset niihin käsiksi phpMyAdminilla. Sinun ei tarvitse muokata phpMyAdminin konfiguraatiota ellet ole muuttanut MySQL salasanaasi. Tällöin saat toimintaohjeet sähköpostitse. Korvaa server_sql, pass_sql jne. omilla tiedoillasi. Muokkaa phpMyAdminin config.inc.php -tiedostoa: $cfg['Servers'][$i]['password']: /** * Server(s) configuration */ $i = 0; // The $cfg['Servers'] array starts with $cfg['Servers']. Do not use $cfg['Servers']. // You can disable a server config entry by setting host to ''. $i++; [...] [...] $cfg['Servers'][$i]['password'] = 'pass_sql'; [...] [...] [...] Example: /** *Server(s) configuration */ $i = 0; // The $cfg['Servers'] array starts with $cfg['Servers']. Do not use $cfg['Servers']. // You can disable a server config entry by setting host to ''. $i++; [...] [...] $cfg['Servers'][$i]['password'] = 'UiD59rtM'; [...] [...] [...] Edit the config.inc.php file in your phpMyAdmin, find the following section and modify the parameters $cfg['Servers'][$i]['host']: /** * Server(s) configuration */ $i = 0; // The $cfg['Servers'] array starts with $cfg['Servers']. Do not use $cfg['Servers']. // You can disable a server config entry by setting host to ''. $i++; [...] [...] $cfg['Servers'][$i]['host'] = 'serveur_sql'; [...] [...] [...] Example: /** * Server(s) configuration */ $i = 0; // The $cfg['Servers'] array starts with $cfg['Servers']. Do not use $cfg['Servers']. // You can disable a server config entry by setting host to ''. $i++; [...] [...] $cfg['Servers'][$i]['host'] = 'sql3'; [...] [...] [...] OVH automatically saves your "MySQL" database every day and every week. If you need access to this data, you can use phpMyAdmin to modify the configuration. For more details on saving data, you can consult this help guide: SaveBasesMySQLSaveBasesMySQL Edit the config.inc.php file of your phpMyAdmin. Find this code section and modify the parameters. $cfg['Servers'][$i]['only_db']: /** * Server(s) configuration */ $i = 0; // The $cfg['Servers'] array starts with $cfg['Servers']. Do not use $cfg['Servers']. // You can disable a server config entry by setting host to ''. $i++; [...] [...] $cfg['Servers'][$i]['only_db'] = 'nom_backup'; [...] [...] [...] example (for the previous night's saved data): /** * Server(s) configuration */ $i = 0; // The $cfg['Servers'] array starts with $cfg['Servers']. Do not use $cfg['Servers']. // You can disable a server config entry by setting host to ''. $i++; [...] [...] $cfg['Servers'][$i]['only_db'] = 'explicatdb-n'; [...] [...] [...] Hakemistojen suojaus Voit muokata tunnistetietoja editoimalla .htpassword tiedostoa. Lisää tai muokkaa seuraavaa riviä: toto:tok.SOnXr50ss toto on login. tok.SOnXr50ss on kryptattu salasana. Salasanan voi tehda http://www.ovh.co.uk/cgi-bin/fr/crypt.pl">täällä. Saat palautuksena kryptatun salasanan, jonka voit liittää tiedostoon. |