• Hello everybody,

    I can’t run the code generation utility wpmvc to create the initial code of the plugin,
    It show error

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    	<title>Database Error</title>
    
    </head>
    <body>
    	<h1>Error establishing a database connection</h1>
    </body>
    </html>

    Please help,

Viewing 1 replies (of 1 total)
  • Months later, but maybe this will be useful to somebody.

    Be very specific with your DB_HOST in wp-config.php. Because WP isn’t working through Apache on the CLI, you have to explicitly tell it where mysql.sock is located.

    I changed my DB_HOST from “localhost” to “localhost:/Applications/MAMP/tmp/mysql/mysql.sock” and it worked like a charm.

Viewing 1 replies (of 1 total)

The topic ‘Can't run the code generation utility wpmvc’ is closed to new replies.