Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# cdsprime 10/17/2006 9:16 AM (edited 10/17/2006 9:25 AM)
Hey, I read through all the related posts on the forum, and even some general searches on the subject on Google and the sourceforge forums. However I am still reaching a roadblock when installing As I recieve this error from default.aspx:

'SQL Server does not exist or access denied.'

when I tried to run install.apsx from the install directory, this was my error:
*******************************
Cuyahoga Installation
An error occured:

NHibernate.ADOException: Could not create connection from Driver ---> System.Data.SqlClient.SqlException: SQL Server does not exist or access denied. at System.Data.SqlClient.ConnectionPool.CreateConnection() at System.Data.SqlClient.ConnectionPool.UserCreateRequest() at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) at System.Data.SqlClient.SqlConnection.Open() at NHibernate.Connection.DriverConnectionProvider.GetConnection() --- End of inner exception stack trace --- at NHibernate.Connection.DriverConnectionProvider.GetConnection() at Cuyahoga.Core.Util.DatabaseUtil.GetAssemblyVersion(String assembly) at Cuyahoga.Core.Service.DatabaseInstaller.CheckCurrentVersionInDatabase() at Cuyahoga.Core.Service.DatabaseInstaller..ctor(String installRootDirectory, Assembly assembly) at Cuyahoga.Web.Install.Install.Page_Load(Object sender, EventArgs e)
***************************************


I am trying to install Cuyahoga with the following:

1. IIS 5
2. MySQL - 4.0.27

I uploaded my files to the correct directory, and then I was able to create the MySQL database, and test connection information (the server, database, user, and password) with MySQl Web Admin, so I know that that works. it connected to the blank empty database with no problems.

My question is what exactly changes or steps do I take now specifically for MySQL?

What changes do I need to make and where in the Web.config to
designate MYsql and my selected database format &
enter the connection information in the Install.txt doesn't seem to indicate this or I misunderstood it. I didn't see an example for MySQL.

Any hints, experinces, or pointers in the right direction will be greatly appreciated.

Thanks!
# martijnb 10/17/2006 12:05 PM
In the web.config, you have to enable (uncomment) the following section and don't forget to enter the correct database connection string:
<add key="hibernate.dialect" value="NHibernate.Dialect.MySQLDialect" />
	<add key="hibernate.connection.driver_class" value="NHibernate.Driver.MySqlDataDriver" />
	<add key="hibernate.connection.connection_string" value="server=localhost;database=cuyahoga;uid=YOUR_USERNAME;pwd=YOUR_PASSWORD;" />

You also have to disable the section for SQL Server.
# cdsprime 10/19/2006 4:57 AM
That was it. Thank you for the timely and accurate help!