Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql Alfresco:在此服务器上找不到Alfresco存储库_Mysql_Alfresco - Fatal编程技术网

Mysql Alfresco:在此服务器上找不到Alfresco存储库

Mysql Alfresco:在此服务器上找不到Alfresco存储库,mysql,alfresco,Mysql,Alfresco,我是Alfresco Comunity的新手,在尝试配置数据库时遇到问题。我按照中的步骤操作,但它不起作用。我仍然收到一个错误:“无法在此服务器上找到Alfresco存储库”” 这是我的C:\alfrescocommunity\tomcat\shared\classes\alfrescoglobal.properties ############################### ## Common Alfresco Properties # ########################

我是Alfresco Comunity的新手,在尝试配置数据库时遇到问题。我按照中的步骤操作,但它不起作用。我仍然收到一个错误:“无法在此服务器上找到Alfresco存储库”

这是我的
C:\alfrescocommunity\tomcat\shared\classes\alfrescoglobal.properties

###############################
## Common Alfresco Properties #
###############################

dir.root=C:/alfresco-community/alf_data

alfresco.context=alfresco
alfresco.host=127.0.0.1
alfresco.port=8080
alfresco.protocol=http

share.context=share
share.host=127.0.0.1
share.port=8080
share.protocol=http

### database connection properties ###
#db.driver=org.postgresql.Driver
#db.username=alfresco
#db.password=admin
#db.name=alfresco
#db.url=jdbc:postgresql://localhost:5432/${db.name}
# Note: your database must also be able to accept at least this many connections.  Please see your database documentation for instructions on how to configure this.
#db.pool.max=275
#db.pool.validate.query=SELECT 1

db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://localhost:3306/alfrescoaio?useUnicode=yes&characterEncoding=UTF-8 

db.username=root
db.password=123abc

db.name=alfrescoaio
db.host=localhost
db.port=3306
db.pool.max=275

user.name.caseSensitive=true




# The server mode. Set value here
# UNKNOWN | TEST | BACKUP | PRODUCTION
system.serverMode=UNKNOWN

### FTP Server Configuration ###
ftp.port=21

### RMI registry port for JMX ###
alfresco.rmi.services.port=50500

### External executable locations ###
ooo.exe=C:/alfresco-community/libreoffice/App/libreoffice/program/soffice.exe
ooo.enabled=true
ooo.port=8100
img.root=C:\\alfresco-community\\imagemagick
img.coders=${img.root}\\modules\\coders
img.config=${img.root}
img.gslib=${img.root}\\lib
img.exe=${img.root}\\convert.exe

jodconverter.enabled=false
jodconverter.officeHome=C:/alfresco-community/libreoffice/App/libreoffice
jodconverter.portNumbers=8100

### Initial admin password ###
alfresco_user_store.adminpassword=209c6174da490caeb422f3fa5a7ae634

### E-mail site invitation setting ###
notification.email.siteinvite=false

### License location ###
dir.license.external=C:/alfresco-community

### Solr indexing ###
index.subsystem.name=solr4
dir.keystore=${dir.root}/keystore
solr.host=localhost
solr.port.ssl=8443

### Allow extended ResultSet processing
security.anyDenyDenies=false

### Smart Folders Config Properties ###
smart.folders.enabled=false

### Remote JMX (Default: disabled) ###
alfresco.jmx.connector.enabled=false
日志中的错误:

rnate-context.xml]: Cannot resolve reference to bean '&sessionFactory' while setting bean property 'localSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceCheck' defined in class path resource [alfresco/core-services-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.alfresco.repo.domain.schema.DataSourceCheck]: Constructor threw exception; nested exception is java.lang.RuntimeException: Database connection failed: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'

有谁能帮我解决这个问题吗?

Alfresco安装程序附带PostgreSQL。安装后,它将PostgreSQL驱动程序(PostgreSQL-9.4-1201-jdbc41.jar)放在$TOMCAT_HOME/lib中

如果要切换到其他数据库,则需要确保新的数据库驱动程序可用。您的错误消息似乎表明它不是

查看$TOMCAT_HOME/lib,看看是否有一个名为mysql connector java-*.jar的文件。如果没有,请从下载它,然后将JAR放在该目录中并重新启动。

遵循此操作

请检查是否已完成以下步骤:

  • mysql-connector-java-5.x.x
    jar复制到
    \tomcat\lib
    文件夹中
  • \MySQL Server 5.0\my.ini中的
    max\u connections=275
  • 创建用户露天并分配所有权限
  • 在数据库中创建架构
    alfresco

如果更改alfresco的数据库技术,则必须创建一个名为
alfresco
的数据库架构

因为当Alfresco在那时启动时,它将找到数据库并基于该模式创建一些表


你能发布tomcat的日志吗?你使用的是什么版本的Alfresco社区?您是否下载了源代码并正在自己构建它,或者您正在使用安装程序?您正在尝试连接到哪个数据库?您是否在MySQL中创建了名为“Alfrescaio”的数据库,并向名为“root”的用户授予密码为“123abc”的访问权限?使用mysql客户端或类似工具验证您是否可以使用这些凭据连接到该数据库。@DaveDraper我使用的是alfresco v 201602,是的,我使用安装程序,我要连接到MYSQL@JeffPotts是的,我已经建立了数据库。我的数据库名是“alfrescoaio”,用户名是root,密码是123abc。