autor: admin | Čvc 31, 2020 | Uncategorized
What if you’ve forgotten your MySQL root user password? This could be quite the predicament … had the developers not thought of that eventuality. In order to recover the password, you simply have to follow these steps:
- Stop the MySQL server process with the command sudo service mysql stop
- sudo mkdir /var/run/mysqld
- sudo chown mysql:mysql /var/run/mysqld
- Start the MySQL server with the command sudo mysqld_safe –skip-grant-tables –skip-networking &
- Connect to the MySQL server as the root user with the command mysql -u root
At this point, you need to issue the following MySQL commands to reset the root password:
mysql> use mysql;
mysql> update user set authentication_string=password('NEWPASSWORD') where user='root';
mysql> flush privileges;
mysql> quit
autor: admin | Čvc 30, 2020 | Uncategorized
Toto je důležité pro detekci kodování
mysql --default-character-set=utf8 -h ddd -u zzz -p dbname < dump.sql
Nahrazení řetězce v souboru:
sed -i 's/old-text/new-text/g' input.txt
Rozdělení na soubory:
csplit -k bigfile.txt '/^DELETE/' {*}
autor: admin | Čvn 25, 2019 | Uncategorized
Upozornění ze skriptu
( speaker-test -t sine -f 1000 )& pid=$! ; sleep 0.1s ; kill -9 $pid
autor: admin | Bře 18, 2019 | Uncategorized
sed -n -e ‚/DROP TABLE.*`wp_options`/,/UNLOCK TABLES/p‘ mysql_examplecom.sql > examplecom_wp_options.sql
nebo z gzipu:
zcat 2018-09-15_sk.sql.gz | sed -En ‚/DROP TABLE.*`nuke_users`/,/UNLOCK TABLES/p‘ > examplecom_wp_options.sql
autor: admin | Zář 13, 2017 | Uncategorized
cd yourdirectory
perl -e 'for(<*>){((stat)[9]<(unlink))}'
Nejnovější komentáře