Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Commit

Permalink
Remove my.cnf config file (#16) (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
mliszcz authored and bourtemb committed May 24, 2019
1 parent 4273e44 commit 2be2ce6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 520 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ DataBaseds_SOURCES=ClassFactory.cpp \
if TANGO_DB_CREATE_ENABLED

dbdir=${pkgdatadir}/db
db_DATA=create_db.sh create_db.sql my.cnf create_db_tables.sql stored_proc.sql update_db.sh update_db.sql update_db8.sql update_db7.sql rem_history.sql
db_DATA=create_db.sh create_db.sql create_db_tables.sql stored_proc.sql update_db.sh update_db.sql update_db8.sql update_db7.sql rem_history.sql

## This is to make sure that the create-db script is run on each make all.
## See create_db.sh for more information.
Expand All @@ -40,7 +40,7 @@ all-local: .force

endif

EXTRA_DIST = create_db.sh.in create_db.sql.in my.cnf.in create_db_tables.sql.in stored_proc.sql.in \
EXTRA_DIST = create_db.sh.in create_db.sql.in create_db_tables.sql.in stored_proc.sql.in \
update_db.sh.in update_db8.sql.in update_db7.sql.in update_db.sql.in rem_history.sql.in

.force:
Expand Down
8 changes: 8 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ Note: You need jive 3.3 or higher to be able to access history.
Starting from scratch
------------------------------------------------------------------------

Note: It is recommended to setup the database to use latin1 character set.
Especially, any other character set with characters longer than 3 bytes
will not work. Character set can be specified in my.cnf configuration file:

[mysqld]
character_set_server=latin1
collation_server=latin1_swedish_ci

#Launch the mysql client

mysql -u[user] -p[password]
Expand Down
3 changes: 0 additions & 3 deletions configure/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,3 @@ foreach(DB_SCRIPT_FILE ${DB_SCRIPTS})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${DB_SCRIPT_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${DB_SCRIPT_FILE})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DB_SCRIPT_FILE} DESTINATION "${CMAKE_INSTALL_PREFIX}/share/tango/db")
endforeach(DB_SCRIPT_FILE)

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/my.cnf.in ${CMAKE_CURRENT_BINARY_DIR}/my.cnf)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/my.cnf DESTINATION "${CMAKE_INSTALL_PREFIX}/share/tango/db")
Loading

0 comments on commit 2be2ce6

Please sign in to comment.