Displaying 20 results from an estimated 70000 matches similar to: "FastCGI, Debian and MySQL"
2006 Feb 11
1
Fastcgi and mysql woes
Hi,
I have been heck of a time to get mysql and fastcgi to
work properly on my Mac OS X box. I keep getting the
following error: Can''t connect to local MySQL server
through socket ''/opt/local/var/run/mysql5/mysqld.sock''
(13)
I have even tried commenting out the "socket" option
in my database.yml but it still gives me the same
error. I''m ok when I
2006 Aug 02
1
how to change rails mysql socket PATH from /var/run to /var/lib?
i have an app im installing that tries look for mysqld.sock in
/var/run/mysqld/mysqld.sock and mysql puts it at /var/lib/mysql/mysql.sock.
if i point mysql at /var/run the app works i.e mysqld
-socket=/var/run/mysqld/mysqld.sock; if i don''t i get an error that goes "
Showing app/views/articles/index.rhtml where line #35 raised:
No such file or directory -
2009 Mar 05
2
Can't connect to local MySQL server through socket...
I just did an unwanted mysql upgrade and am now unable to start the
mysql service.
After doing some searching the common solution is to just create a
symlink
ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
The issue for me is I don''t have the file I am trying to symlink to
(/var/run/mysqld/mysqld.sock)
If I try to start mysql manually (mysql start) I get the error:
# mysql start
2011 Feb 20
2
Problem with mysql2 gem and Debian
Hi Guys,
I''m having an issue with deploying my application and the mysql2 gem.
I am developing on Windows 7 with Ruby 1.9.2 and Rails 3.0.3.
On my local machine in development environment the application runs
just fine. But when I want to deploy it on our production server I get
an error message from passenger.
"Please install the mysql2 adapter: `gem install activerecord-mysql2-
2007 Sep 26
3
Can't connect to local MySQL server
hello everyone, i am new to ROR.
i am just trying to run a simple application which will show some data
from database, i have done it in my local machine. But when i tried to
do the same thing in my "Dreamhost" shared hosting. I got an error.
i used the Rake tool and successfully migrated a model (using SSH
client tool). The table was successfully created hosting db server, so
i
2006 Apr 27
5
mysql lost connection
Hi,
I''m lost and my mysql connection as well... I got this
error in my production.log:
ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to MySQL
server during query: SET NAMES ''utf8''):
Config:
Debian Sarge (last updated), Rails 1.1.2, Webrick,
mysqld Ver 4.1.11-Debian_4sarge2 for pc-linux-gnu on i386
apache2 with mod_rewrite and webrick as proxy on 8080.
2006 Feb 08
5
Mysql::Error: Lost connection to MySQL server during query:
Hi,
I am having Mysql connection problem for my first AddressBook
application (which I took it from
http://www-128.ibm.com/developerworks/linux/library/l-rubyrails/)
I have gem installed the latest ruby, rails, lighttpd, fastcgi,
mysql-4.1.14 on linux. Everything looks good. When I do:
mysql -h localhost -u test -ptest -D AddressBook
mysql> SELECT COUNT(*) FROM contacts;
+----------+
|
2010 Feb 23
1
Rails on Snow Leopard
In particular, if you''re putting Rails on Snow Leopard to work on a
project that you started on Linux.
If you run rake db:create and see an error like this:
Couldn''t create database for {"reconnect"=>false, "encoding"=>"utf8",
"username"=>"root", "adapter"=>"mysql",
2006 Dec 14
4
need help rubyonrails/mysql problem
Hi everybody,
I am new in rubyonrails, and I am trying to learn it so I try to
implement tht examples in the agile web developement with rails. I have
stopped when I want to use scaffold. as it is mentionned in the book:
ruby script/generate scaffold Product Admin
but i get an error: it said no such file or directory /tmp/mysql.sock
I have checked my configuration of mysql and i found that mysql
2013 May 15
1
staging deploy connected to production database
I''m not sure why but I have both a staging and production deploy using
the ''capistrano/ext/multistage'' gem. I set staging to the default:
set :stages, ["staging", "production"]
set :default_stage, "staging"
It deploys correctly to the right path:
#deploy/staging.rb
set :deploy_to, "/home/myuser/public_html/mysite/"
But it
2009 Jul 29
1
Windows+Apache+FastCGI+Postgres - didn't work
Hello All,
Get
[Thu Jul 30 03:46:12 2009] [error] [client 66.249.67.10] (OS 2) Can''t
find specified file: FastCGI: failed to connect to server "C:/usr/www/
public/dispatch.fcgi": CreateFile()/WaitNamedPipe() timed out
[Thu Jul 30 03:46:12 2009] [error] [client 66.249.67.10] FastCGI:
incomplete headers (0 bytes) received from server "C:/usr/www/public/
dispatch.fgi"
2006 Mar 05
1
encoding: utf8 in database.yml causes error
Hi
Using ruby 1.8, rails 1.0, mysql 4.1.11
in database.yml:
adapter: mysql
encoding: utf8
database: myproject_development
username: user
password: password
socket: /var/run/mysqld/mysqld.sock
but when I start the error I get:
Can''t initialize character set utf8 (path: /usr/share/libmysqlclient/charsets/)
Can anyone tell me what file it''s looking for, and how I
2006 Apr 13
4
Apache/fastcgi setup can''t find custom config/*.yml file!
All,
Apache 2/FastCGI on Linux
My fastcgi config. file is set up to run the "test" RAILS_ENV.
When I go to access a view associated with a particular controller, I
keep getting a ENOENT (file not found) error on a custom config. file
that I am attempting to load.
What I can''t figure out is why it can''t find the file.
Here''s the code that loads it in my
2006 Mar 30
2
database.yml and Dreamhost
I am unable to connect to my databases.
Here is the error I am getting:
MysqlError (Can''t connect to local MySQL server through socket
''/var/run/mysqld/mysqld.sock'' (2)):
Here is my database.yml:
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
#
# Get the fast C bindings:
# gem install mysql
# (on OS X: gem install mysql --
2006 Oct 31
1
mysql won't start
OK so at some point I borked my mysql 4.1.20 installation on my
x86_64 system. Possibly relevant: I have enabled the centosplus
repository in yum.conf because I needed a package from there. I have
not upgraded mysql from there.
Everything was working, then "something" aparrently happened, and now
mysql won't start. The logs say:
061031 11:37:38 mysqld started
061031 11:37:38
2009 Apr 29
1
Driving me nuts!!! - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I had to put a new HD in, and now I''m reinstalling everything, and
can''t get mysql to fully work. I can''t remember how I fixed it. I''ve
searched everywhere online and can''t find anything.
when I try to use the >mysql command I get this:
Can''t connect to local MySQL server through socket ''/tmp/
mysql.sock'' (2)
My first
2006 Feb 26
17
please help: having problem with the scaffold commad, mysql.
i just recently purchase agile web dev book about ruby on rails and
going through the whole project. well i am now stuck on creating the
scaffold. I have been messing with settings for awhile now. here is the
error:
koloa@ubuntu:/var/www/depot$ ruby script/generate scaffold Product Admin
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists test/functional/
dependency
2006 Jul 25
1
mysql cluster database.yml setup
im trying to deploy my app on our staging server and am running into an
issue.
we have a MySQL NDB cluster for the staging box. this basically means that
the staging box should be able to use MySQL via localhost and it will
automatically know it''s in a cluster. When running queries, it will go out
to the real DB boxes instead of localhost to fetch the data.
AFAIK, the clustering setup
2006 Aug 16
3
problems with fastcgi, apache2 and debian sarge
Apache conf:
FastCgiServer /var/www/gissmoh.de/public/dispatch.fcgi -initial-env
RAILS_ENV=prod
uction -processes 5 -idle-timeout 60
<virtualhost 212.87.142.234:80>
ServerName www.gissmoh.de
DocumentRoot /var/www/gissmoh.de/public
CustomLog /var/log/apache2/gissmoh.de/access.log
combined
SetEnv RAILS_ENV production
2011 Oct 11
3
/etc/init.d/mysql =fail mysqld=success
Hello.
This is my mysql-server.pp file, both master and client are runing
ubuntu.
--------------------
class mysql-server {
package { "mysql-server": ensure => installed }
package { "mysql-client": ensure => installed }
service { "mysql":
enable => true,
ensure => running,
require => Package["mysql-server"],
}
file