Thanks guys for trying to help me out, So heres my problem, I sent it to
the tech support of DreamHost and copied the email I sent him and am
going to post it here, so keep that in mind, thanks.
+++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++
Hello, Ive been having trouble setting up mysql to connect with my
substrcut app, I have configured everyhting ok, Pasword, and port and
SOCKET. Here is the problem:
heres my database file:
An example of my db file (database.yml):
development:
adapter: mysql
socket: /var/run/mysqld/mysqld.sock
database: substruct_development
username: Username
password: Password
host: mysql.redesigntheory.com
port: 3306
When I perform this step: cp -R vendor/plugins/substruct/db/* db/
I get a permission denied:
wiggum]$ cd svn.redesigntheory.com
[wiggum]$ cp -R vendor/plugins/substruct/db/* db/
cp: cannot create regular file
db/migrate/.svn/text-base/003_add_rbac.rb.svn-base': Permission denied cp: cannot create regular file
db/migrate/.svn/text-base/001_add_user_and_contact.rb.svn-base’:
Permission denied
cp: cannot create regular file
db/migrate/.svn/text-base/002_add_tags.rb.svn-base': Permission denied cp: cannot create regular file
db/migrate/.svn/prop-base/003_add_rbac.rb.svn-base’: Permission denied
cp: cannot create regular file
db/migrate/.svn/prop-base/001_add_user_and_contact.rb.svn-base': Permission denied cp: cannot create regular file
db/migrate/.svn/prop-base/002_add_tags.rb.svn-base’: Permission denied
cp: cannot create regular file
db/migrate/.svn/props/003_add_rbac.rb.svn-work': Permission denied cp: cannot create regular file
db/migrate/.svn/props/001_add_user_and_contact.rb.svn-work’: Permission
denied
cp: cannot create regular file
db/migrate/.svn/props/002_add_tags.rb.svn-work': Permission denied cp: cannot create regular file
db/migrate/.svn/wcprops/003_add_rbac.rb.svn-work’: Permission denied
cp: cannot create regular file
db/migrate/.svn/wcprops/001_add_user_and_contact.rb.svn-work': Permission denied cp: cannot create regular file
db/migrate/.svn/wcprops/002_add_tags.rb.svn-work’: Permission denied
cp: cannot create regular file db/migrate/.svn/entries': Permission denied cp: cannot create regular file
db/migrate/.svn/empty-file’: Permission
denied
cp: cannot create regular file db/migrate/.svn/README.txt': Permission denied cp: cannot create regular file
db/migrate/.svn/format’: Permission
denied
cp: cannot create regular file `db/migrate/.svn/dir-wcprops’: Permission
denied
Then when I do this step:
wiggum]$ chmod +w db/schema.rb
[wiggum]$ rake db:schema:load
(in /home/.lemon/strikezero/svn.redesigntheory.com)
– create_table(“content_node_types”, {:force=>true})
rake aborted!
Can’t connect to local MySQL server through socket
‘/var/run/mysqld/mysqld.sock’ (2)
As you can see in this it says it cant find the socket but as you can
see in the database file it Points to the right directory for the
socket.
because when i do a “[wiggum]$ mysql_config --socket” command I get :
“[wiggum]$ mysql_config --socket
/var/run/mysqld/mysqld.sock”
So this leads me to suspect that its pointing to the socket, but its not
there, Is this a problem on your end, and if not what can I do to
resolve this.
Thank you for your prompt responce.
Seems fine too me… Is this an error on your end? thanks
Redesigntheory.com
Support
+++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++
Please can anyone help, thanks alot guys!