117
31
|
I need to delete all rows from a table but when I add a new row, I want the primary key ID, which has an auto increment, to start again from 0 respectively from 1.
| |||
add a comment
|
198
|
Do not delete, use truncate:
| ||||
|
I need to delete all rows from a table but when I add a new row, I want the primary key ID, which has an auto increment, to start again from 0 respectively from 1.
| ||||
add a comment
|
Do not delete, use truncate:
| |||||
|
$ mysqlcheck --all-databases -uroot -p
$ mysql -uroot -p databasename REPAIR TABLE tablename;
How to convert stardict dictionary file format to any readable format (xml, txt or something)?
| |||
The stardict-tools tarball downloadable from their website has a
stardict2txt tool that you'll need to build from source. | |||||||||
|
I found this step by step guide on how to use the StarDict editor for Windows in order to decompile a StarDict dictionary to XML format.
| ||||
yum install php-pecl-zendopcache
vi /etc/php.d/opcache.ini
opcache.revalidate_freq=0
opcache.validate_timestamps=0
opcache.max_accelerated_files=20000
opcache.memory_consumption=128
opcache.interned_strings_buffer=16
opcache.fast_shutdown=1
find . -type f -print | grep php | wc -l
find . -type f -print | grep module | wc -l
find . -type f -print | grep inc | wc -l
vi /etc/php.d/opcache-default.blacklist
service httpd restart