Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Configuring Ghost To Run On MySQL

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 809
    Comment on it

    By default Ghost uses sqlite3. But if you want to configure Ghost with MySQL Database, you can reconfigure the default settings in config.js file.

    Open config.js (<path-to-your-project>/config.js), replace the below lines of code:

    database: {
        client: 'sqlite3',
        connection: {
            filename: path.join(__dirname, '/content/data/ghost2.db')
        },
    }

    with the MySql configuration. Here is the syntax:

    database: {
            client: 'mysql',
            connection: {
                host: 'localhost',
                user: 'database-user',
                password: 'database-user-password',
                database: 'database-name',
                charset: 'utf8'
            },
    }


    Note: Replace database-user, database-user-password and database-name with the actual details.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: