<p>Never used craftman before, but it <a href="https://github.com/gabrielmoreira/craftman/blob/master/craftman#L99" rel="nofollow noreferrer">looks like</a> the database name it creates is called <code>craft</code> and it's pulling the database <a href="https://github.com/gabrielmoreira/craftman/blob/master/craftman#L504-L505" rel="nofollow noreferrer">user and password</a> from some environment variables named <code>CRAFT_DB_USER</code> and <code>CRAFT_DB_PASSWORD</code> you could check for.</p>

CC BY-SA 3.0
2017-06-12T08:37:14.040Z
I am trying to connect to a localhost port 3306, db name craft, user root, and from what it seems to me in the craft\app\config\db.php password can be left out, but I can't connect to the db. I have tried with changing the name of the db, from craft to the name of my project and I still couldn't connect to it.
Leff
CC BY-SA 3.0
2017-06-09T18:26:06.707Z
2017-06-09T18:26:06.707Z
Brad Bell
<p>I need to make a database on a remote server, and since I have been using <a href="https://github.com/gabrielmoreira/craftman" rel="nofollow noreferrer">craftman</a> installer which uses Docker to install Craft CMS and DB locally I have no idea how does the DB actually looks like. How can I check and see what is DB like, and export the sql file so that I can import it on the remote server?
I have tried to connect to it using these settings:</p>

<pre><code>Host: 127.0.0.1
Username: root
Password: 
Database: craft
Port: 3306
</code></pre>

<p>I have also tried with changing the Db name from craft to the name of my project, but that didn't work either, not sure where I can find the right settings and how to connect to DB?</p>

<database>
Making a DB on a remote server
# Making a DB on a remote server

(Asked by: username_0 on 2017-06-09)

I need to make a database on a remote server, and since I have been using craftman installer which uses Docker to install Craft CMS and DB locally I have no idea how does the DB actually looks like. How can I check and see what is DB like, and export the sql file so that I can import it on the remote server?
I have tried to connect to it using these settings:
Host: 127.0.0.1
Username: root
Password: 
Database: craft
Port: 3306

I have also tried with changing the Db name from craft to the name of my project, but that didn't work either, not sure where I can find the right settings and how to connect to DB?

**Tags:** database

---

## 1 answers

### Answer by username_1 on 2017-06-09. Score: 1

Never used craftman before, but it [looks like](https://github.com/gabrielmoreira/craftman/blob/master/craftman#L99) the database name it creates is called `craft` and it's pulling the database [user and password](https://github.com/gabrielmoreira/craftman/blob/master/craftman#L504-L505) from some environment variables named `CRAFT_DB_USER` and `CRAFT_DB_PASSWORD` you could check for.

> **Comments:**
> **username_0**: I am trying to connect to a localhost port 3306, db name craft, user root, and from what it seems to me in the craft\app\config\db.php password can be left out, but I can't connect to the db. I have tried with changing the name of the db, from craft to the name of my project and I still couldn't connect to it.  

---

