mysql -u username < script.sql
GRANT ALL PRILIVEGES on sphinx.* TO sphinxsearch@localhost;
CREATE database 'sphinx';
CREATE USER 'sphinxsearch'@'localhost' IDENTIFIED BY 'some_pass';
My notes on Tools gather what I know or want to know. Consequently they are not and will never be complete references. For this, official manuals and online communities provide much better answers.