Caligare NetFlow - Knowledgebase
Search:     Advanced search
Browse by category:
Glossary | Contact Us

I can't connect to MySQL database.

Add comment
Views: 1286
Votes: 0
Comments: 0

When you see this message during installation, type the correct username and password for access to MySQL database. If you are trying to connect to a remote database, check if MySQL is configured for networking (disable option --skip-networking in MySQL configuration file). If you forgot your username and password into MySQL, please, refer to the database documentation (chapter How to Reset the Root Password) or use following steps:

  1. Log on to your system as either the Unix root user or as the same user that the mysqld server runs as.
  2. Locate the `.pid' file that contains the server's process ID. The exact location and name of this file depends on your distribution, hostname, and configuration. Common locations are `/var/lib/mysql/', `/var/run/mysqld/', and `/usr/local/mysql/data/'. Generally, the filename has the extension of `.pid' and begins with either `mysqld' or your system's hostname. Now you can stop the MySQL server by sending a normal kill (not kill -9) to the mysqld process, using the pathname of the `.pid' file in the following command:
    kill `cat /mysql-data-directory/host_name.pid`
    Note the use of back ticks rather than forward quotes with the cat command; these cause the output of cat to be substituted into the kill command.
    You may also use the following command:
    killall mysqld
  3. Restart the MySQL server with the special --skip-grant-tables option:
    mysqld --skip-grant-tables &
  4. Set a new password for the root@localhost MySQL account:
    mysqladmin -u root flush-privileges password "newpwd" 
    Replace "newpwd" with the actual root password that you want to use.
  5. Restart the MySQL server without any special option.
    mysqld_safe &
  6. You should now be able to connect using the new password.
Also read
document Can't select MySQL database 'nfx'; check if database exists or you have access rights to use it.

Others in this Category
document What are the recommended system requirements for Caligare Flow Inspector?
document How can I tune the database for better performance?
document Apache configuration file is not found.
document I can't access the web interface.
document When I tried to restart netflow collector I saw message: "Error: unknown parameter restart"
document MySQL module isn't supported by PHP.
document Can't select MySQL database 'nfx'; check if database exists or you have access rights to use it.
document How can I test if netflow collector receives netflow data exports from my Cisco router?
document Many drops where indicated due to bad source IP address in the collector status.
document Netflow is coming in, but I'm seeing many drops due to bad netflow version in the collector status.
document Can I install netflow monitoring on a 64bit system?
document libmysqlclient.so.10: cannot enable executable stack as shared object requires



RSS