search for: mysql_connection

Displaying 20 results from an estimated 65 matches for "mysql_connection".

2006 Jan 06
1
ActiveRecord - Switching Databases
This is a question regarding ActiveRecord outside of Rails. I have several databases that have absolutely identical table structure. I have a ActiveRecord::Base.establish_connection( :adapter => "mysql", :host => "localhost", :username => "user", :password => "password", :database
2010 Dec 15
2
Error reverse engineering MySQL with RMRE
...::BestStandardsSupport Application root /root/test/app Environment development Database adapter mysql2 Database schema version 0 ====== % rmre -a mysql -d test -u root /usr/local/rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.3/lib/ active_record/connection_adapters/mysql_adapter.rb:22:in `rescue in mysql_connection'': !!! Missing the mysql2 gem. Add it to your Gemfile: gem ''mysql2'' (RuntimeError) from /usr/local/rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.3/lib/ active_record/connection_adapters/mysql_adapter.rb:19:in `mysql_connection'' from /usr/local/rvm/gems/ruby-1.9.2...
2007 Jul 28
2
Any SELinux gurus around?
Hey all, I'm having some trouble getting PHP5 w/ CentOS 5 to connect to a remote MySQL server using the standard mysql_connect() call. Yes, MySQL libraries are installed along with php-mysql... The only way I can get it to work is to run setenforce Permissive, otherwise the connection fails. The annoying thing is that nothing at all shows up in my /var/log/messages file describing why
2006 Mar 31
5
php on command line problems
The installed php on CentOS/RHEL is the CGI version. This means I should be able to get command line arguments with $GLOBALS[''argv''] or $_SERVER[''argv'']. That''s how the php documentation tells and how it works f.i. on Suse. However, on CentOS I get them only when I use the -n switch to php (no php.ini). The problem with -n is that php cannot find
2012 Nov 12
3
Unable to lauch php-script to truncate database
Dear All, we have some Nubuilder databases on a Centos6.3 server: [root at caw-server2 db]# ls /var/www/html/nubuilder/db reg_begeleidingsteam reg_jww_archief reg_personeel reg_straathoekwerk reg_bib reg_jww_dossiers reg_resident reg_vrijwilligers reg_drughulp reg_jww_dvd reg_signaleren reg_jac_activiteit reg_onthaal reg_sollicitatie in each
2006 Apr 07
2
minor issue with mysql/ruby - major headache
..._ROOT: ./config/.. Application Trace | Framework Trace | Full Trace c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:195:in `const_missing'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:35:in `mysql_connection'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `send'' if i run the same app with webrick it works. i have a feeling it is the mysql_ruby GEM which i haven''t got working in sync with ru...
2011 Mar 25
1
undefined method `init' for Mysql:Class on Mac with rvm and Passenger 3
...ialized constant MysqlCompat::MysqlRes The Rails 3: NoMethodError undefined method `init'' for Mysql:Class Rails.root: /opt/local/apache2/rails-data/apps Application Trace | Framework Trace | Full Trace activerecord (3.0.5) lib/active_record/connection_adapters/ mysql_adapter.rb:30:in `mysql_connection'' activerecord (3.0.5) lib/active_record/connection_adapters/abstract/ connection_pool.rb:229:in `send'' activerecord (3.0.5) lib/active_record/connection_adapters/abstract/ connection_pool.rb:229:in `new_connection'' -- You received this message because you are subscribed...
2009 Oct 01
3
mongrel + mysql can't connect in custom mysql install
...;' /home/t192zcs/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:9:in `define_all_hashes_method!'' /home/t192zcs/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:66:in `mysql_connection'' /home/t192zcs/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'' /home/t192zcs/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connectio...
2006 Jul 28
1
putty mysql error
...nect'' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/con?necti on_adapters/mysql_adapter.rb:88:in `initialize'' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/con?necti on_adapters/mysql_adapter.rb:37:in `mysql_connection'' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/con?necti on_adapters/abstract/connection_specification.rb:251:in `connection_without_query_cache='' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/que?ry_ca...
2005 Dec 01
0
symlink and 0.14.3
...13.0.2969/lib/active_record/vendor/mysql.rb:510:in `read'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/vendor/mysql.rb:152:in `real_connect'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/mysql_adapter.rb:41:in `mysql_connection'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in `send'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in `co...
2006 Jan 30
5
Problems migrating from Postgres to MySQL
...ent ** Execute db_schema_import rake aborted! uninitialized constant Mysql /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in `const_missing'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:35:in `mysql_connection'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection_without_query_cache='' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/query_cache.rb:54:in `connection='' /usr/l...
2006 Sep 06
5
admin controller problem
...active_support/dependencies.rb:123:in `const_missing'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `const_missing'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/mysql_adapter.rb:34:in `mysql_connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:251:in `connection_without_query_cache='' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/query_cache.rb:54:in `connection='...
2005 Mar 23
1
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)
...;'/tmp/mysql.sock'' (61)): /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.9.0/lib/active_record/connection_adapters/mysql_adapter.rb:39:in `real_connect'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.9.0/lib/active_record/connection_adapters/mysql_adapter.rb:39:in `mysql_connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.9.0/lib/active_record/connection_adapters/abstract_adapter.rb:136:in `send'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.9.0/lib/active_record/connection_adapters/abstract_adapter.rb:136:in `connection='' /u...
2006 Apr 30
3
MySQL connection problems on Dreamhost
..._adapters/mysql_adapter.rb:87:in `initialize'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:37:in `new'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:37:in `mysql_connection'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `send'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `co...
2007 Dec 14
3
Issue with upgrading to 2.0 on Leopard? Or something else?
...connection_adapters/mysql_adapter.rb:165:in `initialize'' /Library/Ruby/Gems/1.8/gems/activerecord-2.0.1/lib/active_record/ connection_adapters/mysql_adapter.rb:88:in `new'' /Library/Ruby/Gems/1.8/gems/activerecord-2.0.1/lib/active_record/ connection_adapters/mysql_adapter.rb:88:in `mysql_connection'' /Library/Ruby/Gems/1.8/gems/activerecord-2.0.1/lib/active_record/ connection_adapters/abstract/connection_specification.rb:291:in `send'' /Library/Ruby/Gems/1.8/gems/activerecord-2.0.1/lib/active_record/ connection_adapters/abstract/connection_specification.rb:291:in `connection=&...
2010 Oct 30
12
Anyone successfully ran JRuby 1.5.3, Rails 3, Tomcat6
Hi, I''ve been trying to get JRuby 1.5.3 with Rails 3 to run on the Tomcat6 server with little success. Has anyone been able to do this? If so, what issues did you have to overcome to get this to work? Also, is this a combination that you would recommend for a production site, or is it all too new and untested? The latest issue I''m stuck on right now is with the mysql-connector-
2010 Oct 28
2
ActiveRecord JDBC error Generated keys not requested
...tion_methods.rb:6:in `new'' /jruby-1.5.3/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-1.0.2- java/lib/arjdbc/jdbc/connection_methods.rb:6:in `jdbc_connection'' /jruby-1.5.3/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-1.0.2- java/lib/arjdbc/mysql/connection_methods.rb:18:in `mysql_connection'' /jruby-1.5.3/lib/ruby/gems/1.8/gems/activerecord-3.0.1/lib/ active_record/connection_adapters/abstract/connection_pool.rb:230:in `new_connection'' /jruby-1.5.3/lib/ruby/gems/1.8/gems/activerecord-3.0.1/lib/ active_record/connection_adapters/abstract/connection_pool.rb:238:in `chec...
2006 Jul 24
0
Error: NameError (uninitialized constant Mysql)
....3.1/lib/active_support/dependencies.rb:133:in `send'' d:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `const_missing'' d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/mysql_adapter.rb:34:in `mysql_connection'' d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:251:in `send''.......... ......... ........ I have installed rails in the app/vendor folder. I am getting this problem on my localhost only. After d...
2006 Mar 31
1
Ruby 1.8.4 upgrade screws up ActiveRecord
...apters/mysql_adapter.rb:331:in `connect'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/mysql_adapter.rb:88:in `initialize'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/mysql_adapter.rb:37:in `mysql_connection'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:251:in `connection_without_query_cache='' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/query_cache.rb:54:in `connection=''...
2004 Jul 30
2
Patch for 0.99.10.8
...t I needed the patch below to get it to compile. --- dovecot-0.99.10.8.orig/src/auth/db-mysql.h +++ dovecot-0.99.10.8/src/auth/db-mysql.h @@ -1,7 +1,8 @@ #ifndef __DB_MYSQL_H #define __DB_MYSQL_H -#include <mysql.h> +#include <mysql/mysql.h> +#include <mysql/errmsg.h> struct mysql_connection; struct mysql_request; -- Jaldhar H. Vyas <jaldhar at debian.org> La Salle Debain - http://www.braincells.com/debian/