Lunarpages Web Hosting Forum

Author Topic: Setting Up MySQL Databases  (Read 11679 times)

Offline TranzNDance

  • Princess of Naboo
  • Berserker Poster
  • *****
  • Posts: 11567
    • Thu Tu's Blog
Setting Up MySQL Databases
« on: March 18, 2005, 10:33:54 AM »
Here's a sticky from the PHP & Mysql section with detailed instructions on setting up a mysql database and its user.

http://www.lunarforums.com/forum/viewtopic.php?t=21575
:whip: :love: :whip: :love: :whip: :love:

Offline r1chard

  • Space Explorer
  • ***
  • Posts: 7
Re: Setting Up MySQL Databases
« Reply #1 on: August 11, 2005, 03:59:40 PM »
it's dead...

Offline RickJ

  • Senior Moderator
  • Über Jedi
  • *****
  • Posts: 2660
Re: Setting Up MySQL Databases
« Reply #2 on: August 11, 2005, 04:20:49 PM »
I've seen a few dead links too.  We recently switched from phpBB to SMF...I wonder if some glitch in the transfer didn't catch all of the old posts...
Trying to daydream, but my mind keeps wandering.

Offline TranzNDance

  • Princess of Naboo
  • Berserker Poster
  • *****
  • Posts: 11567
    • Thu Tu's Blog
Re: Setting Up MySQL Databases
« Reply #3 on: August 11, 2005, 06:02:18 PM »
This doesn't have to do with the switch from phpbb to SMF as much as a move from using the forum directory to the root. If you remove the 'forum' in the URL, the link will point to the correct page. http://www.lunarforums.com/viewtopic.php?t=21575

What the admin could have done was do a replace all of the URLs. That's what the coppermine admin did when there was a server move along with domain name change.
:whip: :love: :whip: :love: :whip: :love:

Offline RickJ

  • Senior Moderator
  • Über Jedi
  • *****
  • Posts: 2660
Re: Setting Up MySQL Databases
« Reply #4 on: August 12, 2005, 01:51:40 AM »
Thanks for the workaround tip :thumb:
Trying to daydream, but my mind keeps wandering.

Offline TWebMan

  • Quantum Encyclopedia Writer
  • *****
  • Posts: 3047
    • Take charge of your site
Re: Setting Up MySQL Databases
« Reply #5 on: March 11, 2006, 02:06:00 PM »
Once you got the db made, make a simple table on the fly if you like:

http://www.twebman.com/php/tablemaker.php
"Computers cause people to make more mistakes than any other invention in history, with the possible exception of handguns and tequila."  - Unknown
"Liberty of any kind is seldom lost all at once." - D. Hume
Every day is an Ode to Joy
The planet will be fine... and so will your site

Offline smittal777

  • Newbie
  • *
  • Posts: 1
PRobaLm in StaRting pErsonal WebsiTE starter Kit in VS2005
« Reply #6 on: February 12, 2008, 05:28:15 AM »
HEy i inStalled Visual studio 2005 Full in my vista System...
When i oPEned it i StarTEd PErsonal website starter kIt in thAt
bUt when i tried to run that paGE
i got error that sqlsrver.exe has stopped working

nd d paGE shows dis error

Server Error in '/WebSite3' Application.
--------------------------------------------------------------------------------

Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

SQLExpress database file auto-creation error:


The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:


If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist.
If the applications App_Data directory already exists, the web server account only requires read and write access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the Sql Server Express database already exists within the applications App_Data directory. Revoking read access on the App_Data directory from the web server account will prevent the provider from correctly determining if the Sql Server Express database already exists. This will cause an error when the provider attempts to create a duplicate of an already existing database. Write access is required because the web server accounts credentials are used when creating the new database.
Sql Server Express must be installed on the machine.
The process identity for the web server account must have a local user profile. See the readme document for details on how to create a local user profile for both machine and domain accounts.


Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:


[SqlException (0x80131904): Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +171
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +199
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2406
   System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +34
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +223
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +371
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +184
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +193
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +219
   System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +27
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +49
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +89
   System.Data.SqlClient.SqlConnection.Open() +160
   System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString) +67

[HttpException (0x80004005): Unable to connect to SQL Server database.]
   System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString) +123
   System.Web.Management.SqlServices.SetupApplicationServices(String server, String user, String password, Boolean trusted, String connectionString, String database, String dbFileName, SqlFeatures features, Boolean install) +89
   System.Web.Management.SqlServices.Install(String database, String dbFileName, String connectionString) +26
   System.Web.DataAccess.SqlConnectionHelper.CreateMdfFile(String fullFileName, String dataDir, String connectionString) +386

 


--------------------------------------------------------------------------------

please tell me how to solve

Offline vks87

  • Intergalactic Cowboy
  • *****
  • Posts: 60
Re: Setting Up MySQL Databases
« Reply #7 on: March 26, 2009, 12:55:22 AM »
Here's a sticky from the PHP & Mysql section with detailed instructions on setting up a mysql database and its user.

http://www.lunarforums.com/forum/viewtopic.php?t=21575

This link is not working which you posted here.
so give us a link again..

Offline Mitch

  • Berserker Poster
  • *****
  • Posts: 12625
    • MitchKeeler.com
Re: Setting Up MySQL Databases
« Reply #8 on: March 26, 2009, 04:54:53 AM »
Well, that link is from 2005 - so not sure exactly where that thread is.  However, I would suggest this post from the wiki.

http://wiki.lunarpages.com/Setup_MySQL_Databases

Hope that helps!
New to Web Site Hosting? Check Out the Lunarpages Blog Hosting Guide!


Follow us @lunarpages on Twitter!
Important Threads: Read This Before Posting! | Lunarforums Rules! | Mitch's Link of the Day!
Also, be sure to check out and subscribe to the Lunartics Blog and the Lunarpages Newsletter !

Need Web Hosting Help? Check out the Lunarpages Web Hosting Wiki. It has tons of tips, tutorials and resources!