mysql2 Questions
13
Solved
in my mac OSX 10.6 32 bit, I can install mysql2 gem quite easily, but not in mini mac 10.6 64bit server.
I have installed MySQL 5.5.11 in troublesome server, while in my home mac MySQL 5.5.0.m2
So...
Rudiger asked 7/5, 2011 at 7:33
3
Does anyone know what causes this and how I can fix it? I am trying to install a ruby gem for my project which is an old project running on rails 3, but I'm running on ubuntu 20.04. All I am doing ...
Breechcloth asked 19/8, 2020 at 16:27
3
I am using ( SequelizeJs + NodeJs + Mysql ) in my project
Whenever I start the project I want to check the database exists or not and then if it's not there I want to create a new one.
I tried this...
Derron asked 22/7, 2019 at 12:18
10
Solved
Rails 4 - Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded
In my gemfile I have:
gem 'mysql2'
My database.yml is as follows:
default: &default
adapter: mysql2
database: <%= ENV['db_name'] %>
username: <%= ENV['db_user'] %>
password:...
Almandine asked 8/9, 2015 at 12:18
6
I've looked at and tried just about everything on the topic here at Stackoverflow.com and still can't figure this out...
When I 'gem install mysql2' I get a permissions error. when I 'sudo gem ins...
Retha asked 20/4, 2017 at 15:9
1
Solved
I am working in a proyect with nodejs + mysql2 and some times I got the error Too many connections.
My connection:
import {createPool, Pool} from 'mysql2/promise';
export async function connect():...
Bertero asked 20/1, 2021 at 16:27
7
Solved
I am trying to run a Rails two app with Ubuntu 10.04 server, sphinx, myql2 version 0.2.7 and percona server 5.5 (Myslql 5.5). mysql2 in irb works ok, I can connect to the db. this rails 2 app is wo...
Taphole asked 10/12, 2011 at 11:50
2
i am currently trying to connect to a MySQL server on the internet using Node.Js with the mysql or the mysql2 NPM dependencies to use queries and other related stuff.
the code is simple...
//i im...
Homozygous asked 24/10, 2018 at 21:40
14
Gem::LoadError
Specified 'mysql2' for database adapter, but the gem is not loaded.
Add `gem 'mysql2'` to your Gemfile
This error occurred while loading the following files:
active_record/base
...
Alodee asked 8/4, 2014 at 9:0
8
Several of my colleagues and I have recently upgraded from MySQL 5.5 to MySQL 5.6 using homebrew on our Macs to test locally before upgrading our servers. Since this upgrade, we all have been exper...
Polaroid asked 23/7, 2013 at 14:50
2
I am using MySQL 5.1.71 with Rails 4.0.4 running on Ruby 2.0.0-p353 (via rbenv + ruby-build), with mysql2 gem 0.3.15. CentOS 6.5.
In database.yml, encoding is set to "utf8" and adapter is "mysql2"...
Grig asked 28/3, 2014 at 17:42
7
I updated all the packages I installed with Homebrew. MySQL got upgraded to 5.6.12 (from 5.5.27 or so):
$ mysql --version
mysql Ver 14.14 Distrib 5.6.12, for osx10.8 (x86_64) using EditLine wrappe...
2
Solved
Recently I wanted to learn Node.js to help me to find a job so I started a web scraping application.
I started with mysql package but after writing the code I didn't have in mind this is an asynch...
Year asked 3/10, 2019 at 11:31
6
Solved
I'm using ruby 2.3, and in the gemfile, I've got the mysql2 gem listed. But when I try to run rake db:migrate, I get the following:
/Users/me/.gem/ruby/2.3.0/gems/mysql2-0.4.2/lib/mysql2.rb:31:in ...
Seljuk asked 30/12, 2015 at 19:56
2
Solved
I am using Mac High Sierra. I am using Ruby 2.2.1 with RVM. I need to use mysql2 with this Ruby on Rails app. I do have mysql 5.7 installed. I do have xcode installed along with the command-line to...
Brackett asked 11/7, 2018 at 3:54
16
I'm having trouble finding a solution to this problem. I'm getting the error:
Please install the mysql adapter: 'gem install activerecord-mysql-adapter'
/Users/ Andy/.rvm/gems/ruby-1.9.2-p290@gl...
9
Working with a rails app, having some manner of weird database / rake issues.
When I execute:
rake db:migrate
I am getting the following error:
Mysql2::Error: No database selected: SHOW TABLES...
Fassold asked 6/2, 2011 at 8:11
2
I'm using (Mac Os)
gem 'rails', '~> 4.2.0' # rails edge
ruby '2.2.0'
gem 'mysql2'
After running bundle i got this error
An error occurred while installing mysql2 (0.3.17), and Bundler can...
Strachey asked 30/10, 2018 at 10:11
2
Solved
I'm trying to integrate a Gem named blazer with my Rails application and I have to specify mysql database URL in blazer.yml file so that it can access data in staging and production environments.
...
Valance asked 16/10, 2018 at 21:51
4
Solved
I have an issue where I'm updating millions of rows in my DB, so rather than updating each one individually I want to join groups of ~1000 statements into a single query.
I have enabled MULTI_STAT...
1
Solved
I have this post request
app.post("/msg", (req, res) => {
console.log(req.body)
connection.query('INSERT INTO plans (topic, notes, resources) VALUES
(?)', [req.body.topic, req.body.note, r...
Mitman asked 26/3, 2018 at 8:32
8
Solved
I'm trying to install the mysql2 gem with Rails 3.2.3 and it's failing:
★ bundle install
Fetching gem metadata from https://rubygems.org/.........
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using m...
Oakum asked 7/4, 2012 at 3:19
4
Solved
I wrote a migration with the following:
class CreateTableSomeTable < ActiveRecord::Migration[5.1]
def change
create_table :some_tables do |t|
t.references :user, foreign_key: true
t.referen...
Ivie asked 14/6, 2017 at 16:25
1
Solved
I'm trying to insert a JSON object into a MySQL JSON column and I'm getting: Invalid JSON text: "Invalid escape character in string."
The offending character is the \n in this part of the object:
...
Lineup asked 27/11, 2017 at 5:22
9
I'm getting the following error when I start rails server:
$ rails server
/Users/ssmith/.rvm/gems/ruby-1.9.2-p0/gems/mysql2-0.2.6/lib/mysql2.rb:7:in `require': dlopen(/Users/ssmith/.rvm/gems/ruby-...
© 2022 - 2025 — McMap. All rights reserved.