sql >> Database teknologi >  >> RDS >> Mysql

Ruby gem mysql2 installation mislykkedes

Ubuntu:

sudo apt-get install libmysqlclient-dev  #(mysql development headers)
sudo gem install mysql2 -- --with-mysql-dir=/etc/mysql/

Det er det!

Resultat:

Building native extensions. This could take a while...
Successfully installed mysql2-0.2.6
1 gem installed
Installing ri documentation for mysql2-0.2.6...
Enclosing class/module 'mMysql2' for class Result not known
Enclosing class/module 'mMysql2' for class Client not known
Installing RDoc documentation for mysql2-0.2.6...
Enclosing class/module 'mMysql2' for class Result not known
Enclosing class/module 'mMysql2' for class Client not known


  1. Kommenter karakter/karakterer i postgres / postgresql / psql?

  2. Sammenligning af databasekolonnetyper i MySQL, PostgreSQL og SQLite? (Cross-mapping)

  3. Implementering af Secure Multicloud MySQL-replikering på AWS og GCP med VPN

  4. Sådan fungerer logins på sammenkædede servere (T-SQL-eksempler)