Dodanie użytkownika root dla MySQL

Konfiguracja serwerów, usług, itp.
Robert007
Beginner
Posty: 169
Rejestracja: 19 stycznia 2010, 07:39

Dodanie użytkownika root dla MySQL

Post autor: Robert007 »

Witam.

Niechcący za pomocą phpmyadmina usunąłem konto roota i teraz nie mogę się zalogować do bazy mysql. Jak można zrobić całkowitą reinstalację aby dodało mi konto root do mysqla?
mariaczi
Member
Posty: 1343
Rejestracja: 08 lutego 2008, 12:58
Lokalizacja: localhost@śląskie

Post autor: mariaczi »

Spróbuj

Kod: Zaznacz cały

dpkg-reconfigure nazwa_pakietu
Robert007
Beginner
Posty: 169
Rejestracja: 19 stycznia 2010, 07:39

Post autor: Robert007 »

Wykonało się polecenie ale żadnego efektu chyba..
mariaczi
Member
Posty: 1343
Rejestracja: 08 lutego 2008, 12:58
Lokalizacja: localhost@śląskie

Post autor: mariaczi »

Robert007
Beginner
Posty: 169
Rejestracja: 19 stycznia 2010, 07:39

Post autor: Robert007 »

Rozwiązałem problem. Udało mi się przeinstalować poprzez usuwanie z opcją "purge".

Edycja:

Kod: Zaznacz cały

1.38 Can I use phpMyAdmin on a server on which Suhosin is enabled?

Yes but the default configuration values of Suhosin are known to cause problems with some operations, for example editing a table with many columns and no primary key or with textual primary key.

Suhosin configuration might lead to malfunction in some cases and it can not be fully avoided as phpMyAdmin is kind of application which needs to transfer big amounts of fields in single HTTP request, what is something what Suhosin tries to prevent. Generally all suhosin.request.*, suhosin.post.* and suhosin.get.* directives can have negative effect on phpMyAdmin usability. You can always find in your error logs which limit did cause dropping of variable, so you can diagnose the problem and adjust matching configuration variable.

The default values for most Suhosin configuration options will work in most scenarios, however you might want to adjust at least following parameters:

suhosin.request.max_vars should be increased (eg. 2048)
suhosin.post.max_vars should be increased (eg. 2048)
suhosin.request.max_array_index_length should be increased (eg. 256)
suhosin.post.max_array_index_length should be increased (eg. 256)
suhosin.request.max_totalname_length should be increased (eg. 8192)
suhosin.post.max_totalname_length should be increased (eg. 8192)
suhosin.sql.bailout_on_error needs to be disabled (the default)
suhosin.log.* should not include SQL, otherwise you get big slowdown
You can also disable the warning using the SuhosinDisableWarning directive.
O co tu chodzi? Nie bardzo rozumiem. W phpmyadminie jest komunikat:

Kod: Zaznacz cały

Serwer działa pod ochroną Suhosina. Możliwe problemy opisuje dokumentacja.
Awatar użytkownika
Yampress
Administrator
Posty: 6423
Rejestracja: 09 sierpnia 2007, 21:41
Lokalizacja: PL

Post autor: Yampress »

php działa z łatą suhosin
Suhosin is an advanced protection system for PHP installations. It was designed to protect servers and users from known and unknown flaws in PHP applications and the PHP core. Suhosin comes in two independent parts, that can be used separately or in combination. The first part is a small patch against the PHP core, that implements a few low-level protections against bufferoverflows or format string vulnerabilities and the second part is a powerful PHP extension that implements all the other protections.

Unlike the PHP Hardening-Patch Suhosin is binary compatible to normal PHP installation, which means it is compatible to 3rd party binary extension like ZendOptimizer.
http://www.hardened-php.net/suhosin/index.html
Robert007
Beginner
Posty: 169
Rejestracja: 19 stycznia 2010, 07:39

Post autor: Robert007 »

Jak można bynajmniej te ostrzeżenie/informacje wyłączyć? Tak by tego nie było widać. Czytałem gdzieś przeszukując internet z pomocą Google, że da się wyłączyć ale nie było konkretnej odpowiedzi jak to zrobić. Może ktoś wie?
ODPOWIEDZ