You only have the T9 with the biggest cargo ? If so, my advice is to be patient and spend a couple of hours on one of the systems with Painite overlapping double hotspots, fill a full load of Painite, than just sell the cargo in a station with a decent price.
With the credits you make ( and yesterday Painite was in a sweet top price of 1 005 000 credits ! ) buy a Conda or an Imperial Cutter. Last one is the king of miners, and a UFO for any Pirate dumb enough to attack you or to interdict you. A decent Cutter is an impossible target for any NPC - that is, assuming you mine in Solo Play and not in Open.
T9 is very vulnerable when parked in belts, you cannot run, you are slow and fat, you need time to get out of gravitational lock, you have many blind spots and bad hard points.
You may survive a pirate but an wing of them can chew your hull in no time.
I do mine in 2 ships - Conda if I need only 320 tons ( faster without getting extra boring) or the Cutter, if I want 522 tons.
Yesterday I was in my Conda, decent Hull ( 6 shield boosters, plenty of weapons, good armor, etc, a fully engineered Conda ) BUT after I dropped in my spot, I was "visited" soon enough by a wing of 3 Python.s Piratess.
I was forced to stay put some 5 minutes before they finished scan me and fly away, I confess I avoided the fight since the odds to get out from that were not in my favor, at least, not without getting serious damage who could ruin my ability to mine, after the fight.
And the pirates spawning after you log off - log - in ? Well, is worse than that ! If you just put the game in hold for some minutes only ( like for to answer some at the door, or get at restroom, etc) pressing esc key, only for 2-5 minutes, WITHOUT login out , when you return to the game pressing back the esc key, your ship is removed from spot and placed on the exterior of the belt, and pirates may show up again... so, the game do not "like" intrerruption, you get a hidden penalty if you stop mining... something I do not like, I confess...