Install TYPO3 8.7.7 with SQL Server on IIS

瘦欲@ 提交于 2019-12-11 15:58:40

问题


I tried to install TYPO3 (8.7.7) on my Webserver (IIS) and I'd like to use my SQL Server instead of MySQL.

I found lots of instructions how to make this (on typo3.org and other websites) but none of these worked for me.

I found out, that I must install two extensions before I start the installation (ADOdb & DBAL). Probably there is my fault.

Can anybody explain step by step how to install these extensions before the TYPO3 installation?


回答1:


I'm using the following configuration to successfully run TYPO3 on SQL Server on my local windows machine:

'DB' => [
    'Connections' => [
        'Default' => [
            'charset' => 'utf-8',
            'dbname' => 't3',
            'driver' => 'sqlsrv',
            'host' => 'localhost',
            'password' => 'yourPassword',
            'port' => 1433,
            'user' => 'sa',
        ],
    ],
],

It's a bit complicated to set up with the installer as it is not yet "clickable". What you can do is call the install script and when it's asking you to configure the database connection you go to your file system and manually add the config section above (with your connection params of course) in the LocalConfiguration.php file.

Then reload the installer - which should now recognize the configured database connection and let you go to the last step where you can import / create the base tables and data.

Note: At the moment I know of two bigger areas where SQL Server is still a problem with TYPO3 8.7 - that's workspaces and database compare. The last one means that after you have existing data in your SQL Server tables won't let you alter them via the TYPO3 database compare tool - you have to change tables manually if you need to.

Find a gist of the table create statements on https://gist.github.com/psychomieze/9570ea1f578aee7a1fbb68c3240a21c8




回答2:


With 8.7, Doctrine DBAL has been integrated into the core and ADOdb & DBAL sysexts have been removed as there is no need anymore.

Take a look at the documentation of Doctrine DBAL http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html and it should fit perfectly to the configuration of the DB in `LocalConfiguration.php``

'DB' => [
    'Connections' => [
        'Default' => [
            'charset' => 'utf8',
            'dbname' => 'typo3',
            'driver' => 'mysqli',
            'host' => 'mysql',
            'password' => 'dev',
            'port' => 3306,
            'user' => 'root',
        ],
    ],
],



回答3:


Now my Typo3 is working. I solved my problem a little bit complicated.

I made a test environment and installed Typo3 with MySQL. Then I copied the database with the "Microsoft SQL Server Migration Assistant 7.6 for MySQL" (https://www.microsoft.com/en-us/download/details.aspx?id=54257) to my main environment.

After that I copied all the created folders (typo3conf, typo3temp etc.) to my main environment and edited the databaseconnection in the LocalConfiguration.php file like Georg Ringer proposed.

When I am installing Typo3 and MSSQL next time I will do it like susi proposed.

Thanks for your help.



来源:https://stackoverflow.com/questions/46391368/install-typo3-8-7-7-with-sql-server-on-iis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!