# PHPBB3 Import failling at first stage

**URL:** <https://meta.discourse.org/t/phpbb3-import-failling-at-first-stage/129556>\
**Category:** Self-hosting\
**Created:** [September 26, 2019, 11:23am UTC](https://meta.discourse.org/t/phpbb3-import-failling-at-first-stage/129556 "2019-09-26T11:23:23Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![robtech](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robtech/32/161256_2.png) [@robtech](https://meta.discourse.org/u/robtech)\
**Post date:** [September 26, 2019, 8:59pm UTC](https://meta.discourse.org/t/phpbb3-import-failling-at-first-stage/129556/5 "2019-09-26T20:59:27Z")

</div>

I’m having trouble running import\_phpbb3.sh inside the import container. I had to restart the mysql by using the commands

`/etc/init.d/mysql stop`

and

`/etc/init.d/mysql start`

then I could enter the import container, where I ran import\_phpbb3.sh, but it failed:

```
root@mydiscourse-import:/var/www/discourse# import_phpbb3.sh

The phpBB3 import is starting...

**Traceback** (most recent call last):

9: from script/import_scripts/phpbb3.rb:13:in `<main>'

8: from script/import_scripts/phpbb3.rb:14:in `<module:ImportScripts>'

7: from script/import_scripts/phpbb3.rb:26:in `<module:PhpBB3>'

6: from /var/www/discourse/script/import_scripts/phpbb3/database/database.rb:9:in `create'

5: from /var/www/discourse/script/import_scripts/phpbb3/database/database.rb:9:in `new'

4: from /var/www/discourse/script/import_scripts/phpbb3/database/database.rb:15:in `initialize'

3: from /var/www/discourse/script/import_scripts/phpbb3/database/database.rb:39:in `create_database_client'

2: from /var/www/discourse/script/import_scripts/phpbb3/database/database.rb:39:in `new'

1: from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.2/lib/mysql2/client.rb:90:in `initialize'

/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.2/lib/mysql2/client.rb:90:in `connect': **Access denied for user 'root'@'localhost' (**  **Mysql2::Error** **)**

```

Can you suggest how to proceed?

---

_[View the full topic](https://meta.discourse.org/t/phpbb3-import-failling-at-first-stage/129556)._
