If for some reason your debian-sys-maint account is unset in MySQL, during MySQL start you will have connect to server error. You might need to set this account in the MySQL server itself.
cat /etc/mysql/debian.cnf to get the password value from the file.
Then connect to the DB
mysql -u root -p
and execute:
GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD' WITH GRANT OPTION
Wednesday, November 26, 2008
Monday, November 10, 2008
Changing time on CentOS
just copy relevant timezone file from /usr/share/zoneinfo to /etc/localtime
like:
cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime
like:
cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime
Tuesday, July 15, 2008
unix backup with tar and mt
Rewind tape drive:
Backup directory /www and /home with tar command (z - compressed):
Find out what block you are at with mt command:
Display list of files on tape drive:
Restore /www directory:
Unload the tape:
Display status information about the tape unit:
Erase the tape:
You can go BACKWARD or FORWARD on tape with mt command itself:
(a) Go to end of data:
(b) Goto previous record:
# mt -f /dev/st0 rewind
Backup directory /www and /home with tar command (z - compressed):
# tar -czf /dev/st0 /www /home
Find out what block you are at with mt command:
# mt -f /dev/st0 tell
Display list of files on tape drive:
# tar -tzf /dev/st0
Restore /www directory:
# cd /
# mt -f /dev/st0 rewind
# tar -xzf /dev/st0 www
Unload the tape:
# mt -f /dev/st0 offline
Display status information about the tape unit:
# mt -f /dev/st0 status
Erase the tape:
# mt -f /dev/st0 erase
You can go BACKWARD or FORWARD on tape with mt command itself:
(a) Go to end of data:
# mt -f /dev/nst0 eod
(b) Goto previous record:
# mt -f /dev/nst0 bsfm 1
(c) Forward record:
# mt -f /dev/nst0 fsf 1
Thursday, July 10, 2008
deleting message from postfix queue
To list the queue execute:
mailq
You can find the problematic messages id and the execute:
find /var/spool/postfix -name "messegeID" | xargs rm
mailq
You can find the problematic messages id and the execute:
find /var/spool/postfix -name "messegeID" | xargs rm
Wednesday, June 18, 2008
Keyboard shortcuts for Windows
Yes i know, it`s a UNIX blog. but sometimes we use M$ as well.
http://support.microsoft.com/kb/126449
http://support.microsoft.com/kb/126449
Subscribe to:
Posts (Atom)
solving error: Your current user or role does not have access to Kubernetes objects on this EKS cluster.
Trying to access EKS cluster with kubectl you might get an error similar to: Your current user or role does not have access to Kubernetes ob...
-
General Information PGPool can run on same server along with PostgreSQL DB or on stand alone server(recommended). In this article we wil...
-
Following information is intended for bash shell only. The system variable TMOUT can be set to specify the amount of time the user is ina...
-
To this day (8/8/2019) Terraform is not packaged in an official apt repository. There is an option to install it with Snap but be careful ...