• Home
  • About
  • Contact

SysAdmin Tips

Lots of useful sysadmin information

  • Cheatsheets
  • FreeBSD
    • Configuration and Setup
    • Troubleshooting
  • Hardware
  • Linux
    • All distributions
    • Debian/Ubuntu
  • Services
    • Databases
    • DLNA
    • DNS
    • LDAP
    • Mail
    • Samba
    • SSH
    • Version Control
    • Web Server
  • Solaris
    • System
You are here: Home » Services » Databases

PostgreSQL: ERROR: permission denied to reassign objects

toshiro August 5, 2018 PostgreSQL: ERROR: permission denied to reassign objects2018-08-05T16:43:57+00:00 Databases No Comment
When reassigning all database objects to a new owner in PostgreSQL you might get this error: mydb=> REASSIGN OWNED BY admin TO new_admin; ERROR: permission denied to reassign objects This…
Continue Reading »

find location of database files

toshiro December 7, 2016 find location of database files2016-12-07T13:16:04+00:00 Databases No Comment
MySQL 1. Connect to the mysql console: # mysql -p 2. Look the value of 'datadir' variable to find the location of database files: mysql> SHOW VARIABLES WHERE Variable_Name =…
Continue Reading »

mysql: change a user’s password

toshiro December 6, 2016 mysql: change a user’s password2016-12-06T15:13:36+00:00 Databases No Comment
1. Login to mysql server with a user with enough privileges (usually root) $ mysql -u root -p 2. Select the database 'mysql' mysql> use mysql; 3. Modify the password…
Continue Reading »

mysql: show grants of all users

toshiro September 15, 2016 mysql: show grants of all users2016-09-15T13:54:48+00:00 Databases No Comment
Unfortunately, there's no a single MySQL command to display all privileges granted to all users, but that information can be gathered with the following procedure: 1. Login as root (or…
Continue Reading »

Set up a master/slave replication in MySQL

toshiro September 4, 2016 Set up a master/slave replication in MySQL2017-02-27T19:56:04+00:00 Databases No Comment
Follow this step by step procedure to replicate a MySQL server (master) to another (slave): 1. CONFIGURE THE MASTER Enable binary log. To do this, add in / under section:…
Continue Reading »

mysql: ‘%’ doesn’t match localhost and/or hostname

toshiro September 29, 2014 mysql: ‘%’ doesn’t match localhost and/or hostname2014-09-29T22:23:16+00:00 Databases No Comment
PROBLEM: You granted access privileges to a user connecting from anywhere using this command: mysql> GRANT ALL PRIVILEGES ON *.* TO prueba@'%' IDENTIFIED BY 'password' Then, when you try to…
Continue Reading »

Cassandra troubleshooting

toshiro August 1, 2014 Cassandra troubleshooting2016-04-17T19:56:01+00:00 Databases No Comment
Execution of 'nodetool status' fails Common error messages: Error: Could not find or load main class Error opening zip file or JAR manifest missing : /usr/local/bin/../ Error occurred during initialization…
Continue Reading »

MySQL cheatsheet

toshiro May 21, 2014 MySQL cheatsheet2017-03-25T20:31:20+00:00 Databases No Comment
Show MySQL configuration settings mysql> SHOW VARIABLES; Show MySQL running threads mysql > SHOW PROCESSLIST; Check the status of the tables of a database $ mysqlcheck -c <database>
Continue Reading »

Categories

Tags

64bits active directory admin tools apache bind cassandra cheatsheet cpu database debian dlna dns e173 freebsd git grub huawei iso label linux lsof mail mirror modem modules mtools multimedia mysql openldap password pkg ports postfix postgresql raid replication salt samba samba4 solaris ssh troubleshooting ubuntu usb www

Login

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright © 2016 Toshiro Viera Stalker - All rights reserved