Metasploit mailing list archives
problem creating database in mysql
From: jamuse at gmail.com (Jamuse)
Date: Sun, 16 Sep 2007 16:53:09 +0200
I'm running: msf > version Framework: 3.1-dev.4575 Console : 3.1-dev.5070 I can load the db_mysql module but when I try to connect I get the following error: ================================================================================= msf > load db_mysql [*] Successfully loaded plugin: db_mysql msf > db_connect root at localhost [-] Error while running command db_connect: undefined method `strip' for nil:NilClass /usr/local/src/trunk/plugins/db_mysql.rb:68:in `cmd_db_connect' ./lib/rex/ui/text/dispatcher_shell.rb:230:in `send' ./lib/rex/ui/text/dispatcher_shell.rb:230:in `run_command' ./lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single' ./lib/rex/ui/text/dispatcher_shell.rb:191:in `each' ./lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single' ./lib/rex/ui/text/shell.rb:125:in `run' ./msfconsole:77 ================================================================================== When I try to create a database I get the following error message, though the 'metasploit3' database is created ================================================================================== msf > db_create [*] Database creation complete (check for errors) [-] Error while running command db_create: This plugin failed to load: Failed to connect to the database Call stack: /usr/local/src/trunk/plugins/db_mysql.rb:139:in `cmd_db_create' ./lib/rex/ui/text/dispatcher_shell.rb:230:in `send' ./lib/rex/ui/text/dispatcher_shell.rb:230:in `run_command' ./lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single' ./lib/rex/ui/text/dispatcher_shell.rb:191:in `each' ./lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single' ./lib/rex/ui/text/shell.rb:125:in `run' ./msfconsole:77 ================================================================================== After creating the database I don't see the added commands like db_nmap for example: ================================================================================== msf > help MySQL Database Commands ======================= Command Description ------- ----------- db_connect Connect to an existing database ( user:pass at host:port/db ) db_create Create a brand new database ( user:pass at host:port/db ) db_destroy Drop an existing database ( user:pass at host:port/db ) db_disconnect Disconnect from the current database instance ================================================================================== Any ideas what's wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.metasploit.com/pipermail/framework/attachments/20070916/405573bc/attachment.htm>
Current thread:
- problem creating database in mysql Jamuse (Sep 16)
- problem creating database in mysql Mr Gabriel (Sep 16)
- problem creating database in mysql Jamuse (Sep 16)
- problem creating database in mysql J.M. Seitz (Sep 16)
- problem creating database in mysql Jamuse (Sep 16)
- problem creating database in mysql Jamuse (Sep 16)
- problem creating database in mysql Mr Gabriel (Sep 16)
- problem creating database in mysql H D Moore (Sep 16)
- problem creating database in mysql Jamuse (Sep 16)
- problem creating database in mysql H D Moore (Sep 16)
- problem creating database in mysql Jamuse (Sep 17)
- problem creating database in mysql Jamuse (Sep 16)