You have a different php configuration which displays warnings that you probably had suppressed before. Most likely you also use a newer php version now.
- The first notice is about a syntax error in strict mode, you probably forgot quotes around a literal string. That might also indicate a character encoding issue, but we cannot tell with the little information you provide.
- The second one speaks for itself: the old mysql extension has been deprecated. Port your code to the newer (and safer) mysqli extension or PDO. Start using "prepared statements" which prevent security issues like "sql injection". Consult google for examples or the excellent php documentation.
- About the connection error: nothing we can say about your credentials... Looks like you used a totally open mysql server and the mysql root account on the old system. You should not do that. Apparently the newer system is a little more closed in that aspect which is a good idea.
When you solved those issues you should reconfigure php to not display errors and warnings at all, since they disrupt your output. Use phps logging facilities instead, especially at production sites.