Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 416 Bytes

File metadata and controls

15 lines (14 loc) · 416 Bytes

Check mysql capacity to handle traffic

mysqlslap  --query=/root/select_query_cp.sql --concurrency=10 --iterations=5  --create-schema=cvts1

Generate statements to replace table prefixes

SELECT
	CONCAT ('rename table ',table_name,' to ',REPLACE( table_name, 'wp_', '<new prefix>' ) ,';')
FROM
	information_schema.tables
WHERE
	table_name LIKE 'wp_%'
  	AND table_schema='<table name>'